[Scummvm-devel] Changes to plugins and config manager

yotam barnoy yotambarnoy at gmail.com
Tue Jan 4 13:57:31 CET 2011


A scummvm.ini file with uncached plugins enabled looks like the
following. The plugin_files domain contains gameid, plugin file path
values:

[scummvm]
mute=false
talkspeed=60
...

[plugin_files]
agi=agi.plg
atlantis=scumm.plg
sci=sci.plg
gob=gob.plg
tentacle=scumm.plg

[agi-fanmade]
platform=pc
gameid=agi
...

[atlantis]
platform=pc
gameid=atlantis
...

[kq1sci]
platform=ps
gameid=sci
...

On Tue, Jan 4, 2011 at 2:43 PM, Eugene Sandulenko <sev at scummvm.org> wrote:
> On Tue, 4 Jan 2011 12:50:12 +0200
> yotam barnoy <yotambarnoy at gmail.com> wrote:
>> To allow writing the entries in the ConfigManager, I had to create
>> another domain called plugin_files. The reason for this is that a) I
>> didn't want to clutter the AppDomain with strange entries, and b) I
>> also didn't have access to the game domain since I only had the gameid
>> to work with. To enable this new domain, I made some changes to
>> ConfigManager. From now on, every game domain must have a gameid key.
>> A domain that doesn't have a gameid key will be considered a
>> miscellaneous domain (miscDomain) when loading from the ini file. It
>> will still be available from getDomain() and all normal operations,
>> but it won't be included in operations that run on gameDomains only
>> ie. hasGameDomain() and getGameDomains().
> This part was not really clear to me. Could you please provide a sample
> scummvm.ini with plugin detection entries?
>
>
> Eugene
>




More information about the Scummvm-devel mailing list