diff options
author | Tony Puccinelli | 2010-08-12 23:55:12 +0000 |
---|---|---|
committer | Tony Puccinelli | 2010-08-12 23:55:12 +0000 |
commit | 139a96182d2a52e25b42ec35f834f7a10f30675c (patch) | |
tree | 1b4e2a3082528cbc44ff4ec7cf4729b0bc0938f0 /base | |
parent | cb3acc96efe450de692f7762b30478f441d40732 (diff) | |
download | scummvm-rg350-139a96182d2a52e25b42ec35f834f7a10f30675c.tar.gz scummvm-rg350-139a96182d2a52e25b42ec35f834f7a10f30675c.tar.bz2 scummvm-rg350-139a96182d2a52e25b42ec35f834f7a10f30675c.zip |
modified DS makefile to use new plugin design where only one plugin is loaded at a time and tested successfully on the DS. Added code to prevent a crash in the case where there are no engine plugins present. Removed code for R_ARM_TARGET1 in arm-loader, as it is no longer used and was never used successfully
svn-id: r52052
Diffstat (limited to 'base')
-rw-r--r-- | base/plugins.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/base/plugins.cpp b/base/plugins.cpp index dbf29f63b7..aac18c4173 100644 --- a/base/plugins.cpp +++ b/base/plugins.cpp @@ -347,6 +347,7 @@ void PluginManager::loadFirstPlugin() { //TODO: rename? It's not quite clear tha } bool PluginManager::loadNextPlugin() { + if (nonEnginePlugs == _allPlugs.size()) return false; //There are no Engine Plugins in this case. //To ensure only one engine plugin is loaded at a time, we unload all engine plugins before trying to load a new one. unloadPluginsExcept(PLUGIN_TYPE_ENGINE, NULL); ++_currentPlugin; |