[Scummvm-devel] data files
Johannes Schickel
lordhoto at gmail.com
Tue Jul 11 17:07:11 CEST 2006
David Weinehall wrote:
> On Sat, Jun 24, 2006 at 01:09:17PM +0200, Willem Jan Palenstijn wrote:
>> Hi all,
>>
>> Since 0.9.0, scummvm comes with a number of data files (modern.ini,
>> modern.zip) that it has to be able to find. On most linux systems, the
>> default place to put such files is $prefix/share/scummvm.
>>
>> I'd like to add this directory to the standard search path for themes,
>> and was thinking of the following:
>>
>> * add 'datadir' to configure similar to the current 'mandir'/'bindir'.
>> (So with a --datadir switch, defaulting to /usr/share.)
>>
>> * add -DDATA_PATH=\"$_datadir/scummvm\" to the compiler flags, or maybe
>> put it in config.h.
>>
>> * let ThemeNew.cpp call addDefaultDirectory(DATA_PATH) if DATA_PATH is
>> defined.
>>
>>
>> Any comments/suggestions? Specifically, am I missing a file location
>> mechanism already in place? Would this be useful for other platforms as
>> well?
>
> Does anyone have any solution for this issue yet?
Hi,
I would agree with the solution wjp suggested. You could of course set
up the themepath variable in the configfile to look at default in a path
like /usr/share/scummvm, this could be done with using a default for
themepath in the code (which would require patches from the builder =>
bad idea), you could also setup the default for themepath if DATA_PATH
(or maybe THEME_PATH then) is defined. (which could then again be
configured with configure or config.h). So we have a special entry for
the theme needed files at least, but it has _no_ default value right
now, it has to be configured by the user with setting the 'themepath'
field in the configfile, can be done with the gui too.
// Johannes
More information about the Scummvm-devel
mailing list