diff options
author | Chris Apers | 2005-09-04 16:38:38 +0000 |
---|---|---|
committer | Chris Apers | 2005-09-04 16:38:38 +0000 |
commit | 368785074c9eb9e9cb9f658064a2fcf453f875f5 (patch) | |
tree | 5e2653f3bb6e436a085393ebc8250ed573d60d4a /base/plugins.h | |
parent | 7acd36b443b413d7d36520582a37b1e933d00c35 (diff) | |
download | scummvm-rg350-368785074c9eb9e9cb9f658064a2fcf453f875f5.tar.gz scummvm-rg350-368785074c9eb9e9cb9f658064a2fcf453f875f5.tar.bz2 scummvm-rg350-368785074c9eb9e9cb9f658064a2fcf453f875f5.zip |
Prepare PalmOS ARM version : no global initializers with ARM loader o_O
svn-id: r18773
Diffstat (limited to 'base/plugins.h')
-rw-r--r-- | base/plugins.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/base/plugins.h b/base/plugins.h index d2b0cca4d3..e3b17de4a5 100644 --- a/base/plugins.h +++ b/base/plugins.h @@ -86,6 +86,15 @@ public: * @todo add some means to query the plugin API version etc. * @todo on Windows, we might need __declspec(dllexport) ? */ + +#ifdef PALMOS_ARM +#define REGISTER_PLUGIN(ID,name) \ + PluginRegistrator *g_##ID##_PluginReg; \ + void g_##ID##_PluginReg_alloc() { \ + g_##ID##_PluginReg = new PluginRegistrator(name, Engine_##ID##_gameList(), Engine_##ID##_create, Engine_##ID##_detectGames);\ + } +#else + #ifndef DYNAMIC_MODULES #define REGISTER_PLUGIN(ID,name) \ PluginRegistrator g_##ID##_PluginReg(name, Engine_##ID##_gameList(), Engine_##ID##_create, Engine_##ID##_detectGames); @@ -98,6 +107,7 @@ public: PLUGIN_EXPORT DetectedGameList PLUGIN_detectGames(const FSList &fslist) { return Engine_##ID##_detectGames(fslist); } \ } #endif +#endif #ifndef DYNAMIC_MODULES /** @@ -156,3 +166,4 @@ public: }; #endif + |