aboutsummaryrefslogtreecommitdiff
path: root/src/NDS.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/NDS.cpp')
-rw-r--r--src/NDS.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/NDS.cpp b/src/NDS.cpp
index 04a1a26..9b096b8 100644
--- a/src/NDS.cpp
+++ b/src/NDS.cpp
@@ -29,6 +29,7 @@
#include "SPI.h"
#include "RTC.h"
#include "Wifi.h"
+#include "Platform.h"
namespace NDS
@@ -342,6 +343,13 @@ void Reset()
Wifi::Reset();
}
+void Stop()
+{
+ printf("Stopping: shutdown\n");
+ Platform::StopEmu();
+ SPU::Stop();
+}
+
void LoadROM(const char* path, bool direct)
{
Reset();