remove some global cruft.

some functions (like stop) are still broken. bear with me, we'll get there.
This commit is contained in:
Arisotura
2024-06-04 12:13:54 +02:00
parent 724d5fbac1
commit 83c9b8dd42
12 changed files with 137 additions and 190 deletions

View File

@ -63,22 +63,7 @@ namespace melonDS::Platform
void SignalStop(StopReason reason, void* userdata)
{
EmuInstance* inst = (EmuInstance*)userdata;
emuStop();
switch (reason)
{
case StopReason::GBAModeNotSupported:
Log(LogLevel::Error, "!! GBA MODE NOT SUPPORTED\n");
//mainWindow->osdAddMessage(0xFFA0A0, "GBA mode not supported.");
break;
case StopReason::BadExceptionRegion:
//mainWindow->osdAddMessage(0xFFA0A0, "Internal error.");
break;
case StopReason::PowerOff:
case StopReason::External:
//mainWindow->osdAddMessage(0xFFC040, "Shutdown");
default:
break;
}
inst->emuStop(reason);
}