add support for SPI shutdown, btw

This commit is contained in:
StapleButter
2017-09-21 03:59:12 +02:00
parent 0aa3434ec7
commit 495d0ba12d
8 changed files with 34 additions and 5 deletions

View File

@ -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();