aboutsummaryrefslogtreecommitdiff
path: root/backends/platform/3ds/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'backends/platform/3ds/main.cpp')
-rw-r--r--backends/platform/3ds/main.cpp14
1 files changed, 9 insertions, 5 deletions
diff --git a/backends/platform/3ds/main.cpp b/backends/platform/3ds/main.cpp
index 4b5dbbbbd2..6cc2c5cf5d 100644
--- a/backends/platform/3ds/main.cpp
+++ b/backends/platform/3ds/main.cpp
@@ -20,8 +20,6 @@
*
*/
-#define FORBIDDEN_SYMBOL_ALLOW_ALL
-
#include "osystem.h"
#include <3ds.h>
@@ -32,7 +30,7 @@ int main(int argc, char *argv[]) {
osSetSpeedupEnable(true);
// consoleInit(GFX_TOP, NULL);
- g_system = new OSystem_3DS();
+ g_system = new _3DS::OSystem_3DS();
assert(g_system);
// Invoke the actual ScummVM main entry point
@@ -42,8 +40,14 @@ int main(int argc, char *argv[]) {
// res = scummvm_main(argc, argv);
scummvm_main(0, nullptr);
- delete dynamic_cast<OSystem_3DS*>(g_system);
-
+ delete dynamic_cast<_3DS::OSystem_3DS*>(g_system);
+
+ // Turn on both screen backlights before exiting.
+ if (R_SUCCEEDED(gspLcdInit())) {
+ GSPLCD_PowerOnBacklight(GSPLCD_SCREEN_BOTH);
+ gspLcdExit();
+ }
+
cfguExit();
gfxExit();
return 0;