aboutsummaryrefslogtreecommitdiff
path: root/src/NDS.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/NDS.cpp')
-rw-r--r--src/NDS.cpp10
1 files changed, 7 insertions, 3 deletions
diff --git a/src/NDS.cpp b/src/NDS.cpp
index d25c1ff..d4f6594 100644
--- a/src/NDS.cpp
+++ b/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()