[Scummvm-devel] Another plugin question

Marcus Comstedt marcus at mc.pp.se
Wed Sep 9 12:01:43 CEST 2009


yotam barnoy <yotambarnoy at gmail.com> writes:

> I'm in the middle of debugging the PSP plugins and I haven't really gotten
> to the point where this would be an issue, since I'm working with just one
> plugin right now, but I noticed that scummvm_main() has the following code:
>
>     // Load the plugins.
>     PluginManager::instance().loadPlugins();
>
> which seems to mean that we're trying to load all the plugins at once(?) Why
> would we do such a thing?

Because the plugins also contain the detection code, so unless we load
all plugins, we will not be able to detect all games.


> I'm wondering how this works in the memory-limited DC?

16MB is enough to load all plugins, as long as you don't actually
start any game.  Before the game is started, all the plugins except
the one used for the game are unloaded, which reclaims the memory
for dynamic use by the engine.


  // Marcus






More information about the Scummvm-devel mailing list