aboutsummaryrefslogtreecommitdiff
path: root/backends/platform/dingux/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'backends/platform/dingux/main.cpp')
-rw-r--r--backends/platform/dingux/main.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/backends/platform/dingux/main.cpp b/backends/platform/dingux/main.cpp
index 7b02151c1a..91899a55cf 100644
--- a/backends/platform/dingux/main.cpp
+++ b/backends/platform/dingux/main.cpp
@@ -37,6 +37,8 @@ int main(int argc, char* argv[]) {
g_system = new OSystem_SDL_Dingux();
assert(g_system);
+ ((OSystem_SDL_Dingux *)g_system)->init();
+
#ifdef DYNAMIC_MODULES
PluginManager::instance().addPluginProvider(new SDLPluginProvider());
// PluginManager::instance().addPluginProvider(new POSIXPluginProvider());
@@ -44,10 +46,9 @@ int main(int argc, char* argv[]) {
// Invoke the actual ScummVM main entry point:
int res = scummvm_main(argc, argv);
- ((OSystem_SDL *)g_system)->deinit();
- return res;
+ ((OSystem_SDL_Dingux *)g_system)->deinit();
+ return res;
}
#endif
-