mirror of
https://github.com/melonDS-emu/melonDS.git
synced 2025-07-24 14:49:53 -06:00
fail gracefully when ROM loading fails
This commit is contained in:
10
src/NDS.cpp
10
src/NDS.cpp
@ -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()
|
||||
|
Reference in New Issue
Block a user