DINGUX: fix compilation for the opengl branch
Moved events related code to backends/events/dinguxsdl/* and move graphics related code to backends/graphics/dinguxsdl/* Subclass OSystem_POSIX instead of OSystem_SDL svn-id: r53730
This commit is contained in:
parent
b713beed18
commit
74a53df11b
11 changed files with 241 additions and 109 deletions
|
@ -24,8 +24,7 @@
|
|||
*/
|
||||
|
||||
#include "backends/platform/dingux/dingux.h"
|
||||
#include "backends/plugins/sdl/sdl-provider.h"
|
||||
//#include "backends/plugins/posix/posix-provider.h"
|
||||
#include "backends/plugins/posix/posix-provider.h"
|
||||
#include "base/main.h"
|
||||
|
||||
#if defined(DINGUX)
|
||||
|
@ -37,16 +36,17 @@ 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());
|
||||
PluginManager::instance().addPluginProvider(new POSIXPluginProvider());
|
||||
#endif
|
||||
|
||||
// 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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue