aboutsummaryrefslogtreecommitdiff
path: root/base
diff options
context:
space:
mode:
authorTony Puccinelli2010-08-12 23:55:12 +0000
committerTony Puccinelli2010-08-12 23:55:12 +0000
commit139a96182d2a52e25b42ec35f834f7a10f30675c (patch)
tree1b4e2a3082528cbc44ff4ec7cf4729b0bc0938f0 /base
parentcb3acc96efe450de692f7762b30478f441d40732 (diff)
downloadscummvm-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.cpp1
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;