fail gracefully when ROM loading fails

This commit is contained in:
StapleButter
2017-10-11 00:01:05 +02:00
parent a15c395460
commit ee1da52d77
4 changed files with 41 additions and 26 deletions

View File

@ -352,14 +352,18 @@ void Stop()
SPU::Stop();
}
void LoadROM(const char* path, bool direct)
bool LoadROM(const char* path, bool direct)
{
Reset();
if (NDSCart::LoadROM(path, direct))
{
Running = true;
return true;
}
else
{
printf("Failed to load ROM %s\n", path);
return false;
}
}
void LoadBIOS()