[Scummvm-devel] Adding support for selecting a 'pluginpath' on the command line?

John Willis John.Willis at Distant-earth.com
Tue Sep 28 12:50:55 CEST 2010


Hi,

 

I have a requirement for one of my ports (OpenPandora) to override the
plugin path with a non-standard value (../plugins) rather than the default .
or ./plugins that are setup in base/plugins.cpp. This is due to a quirk of
the packaging system.

 

While this is very easy to do with the custom config file setting
'pluginspath' this is not then parsed until ScummVM is restarted (and
requires the user to do this step manually or ship a pre-munged config file,
neither good in my book).

 

Rather than hack about with setting the custom path in the code (early
ConfMan.set("pluginspath", pluginsPath ); type things before the plugins are
loaded (so very early on)) I wanted to ask why setting the 'pluginspath' on
the command line was not supported? 

 

I have a simple patch to 'base/ commandLine.cpp' that I am testing that I
think should work fine and I can't see how it should cause any regressions
but before I pushed it to trunk I wanted to check there was not a good
reason that the variable was not exposed on the command line already? 

 

It seems quite sensible to let the users specify where the plugins are on
the command line so I was left thinking it was left out for a good reason I
am not aware of ;).

 

Any comments or shall I just test and push? I would also like to push said
patch (after some more testing) to 1.2.0.

 

Cheers,

 

John

 

--

 

> What is a grue?

The grue is a sinister, lurking presence in the dark places of the earth.
Its favourite diet is adventurers, but its insatiable appetite is tempered
by its fear of light. No grue has ever been seen by the light of day, and
few have survived its fearsome jaws to tell the tale.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.scummvm.org/pipermail/scummvm-devel/attachments/20100928/0c600b62/attachment.html>


More information about the Scummvm-devel mailing list