aboutsummaryrefslogtreecommitdiff
path: root/backends/gp32/gp32_main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'backends/gp32/gp32_main.cpp')
-rw-r--r--backends/gp32/gp32_main.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/backends/gp32/gp32_main.cpp b/backends/gp32/gp32_main.cpp
index 3fb32aa9b2..ebada917fd 100644
--- a/backends/gp32/gp32_main.cpp
+++ b/backends/gp32/gp32_main.cpp
@@ -74,5 +74,8 @@ void GpMain(void *arg) {
g_system = new OSystem_GP32_create();
assert(g_system);
- scummvm_main(1, NULL);
+ // Invoke the actual ScummVM main entry point:
+ int res = scummvm_main(1, NULL);
+ g_system->quit(); // TODO: Consider removing / replacing this!
+ return res;
}