Ticket #8553: scummvm090_theme.diff

File scummvm090_theme.diff, 1.5 KB (added by wjp, 18 years ago)

patch v1

  • configure

     
    292292  --prefix=DIR           use this prefix for installing ScummVM [/usr/local]
    293293  --bindir=DIR           directory to install the scummvm binary in [PREFIX/bin]
    294294  --mandir=DIR           directory to install the manpage in [PREFIX/man]
     295  --datadir=DIR          directory to install the data files in [PREFIX/share]
    295296
    296297Special configuration feature:
    297298  --host=HOST            cross-compile to target HOST (arm-linux, ...)
     
    483484      --mandir=*)
    484485        _mandir=`echo $ac_option | cut -d '=' -f 2`
    485486        ;;
     487      --datadir=*)
     488        _datadir=`echo $ac_option | cut -d '=' -f 2`
     489        ;;
    486490      *)
    487491        echo "error: unrecognised option: $ac_option
    488492Try \`$0 --help' for more information." >&2
     
    12421246#
    12431247test -z "$_bindir" && _bindir="$_prefix/bin"
    12441248test -z "$_mandir" && _mandir="$_prefix/man"
     1249test -z "$_datadir" && _datadir="$_prefix/share"
    12451250
     1251CXXFLAGS="$CXXFLAGS -DDATA_PATH=\\\"$_datadir/scummvm\\\""
     1252
     1253
    12461254#
    12471255# Check which engines ("frontends") are to be built
    12481256#
  • gui/ThemeNew.cpp

     
    7373                clearAll();
    7474        }
    7575
     76#ifdef DATA_PATH
     77        Common::File::addDefaultDirectoryRecursive(DATA_PATH);
     78#endif
     79
     80
    7681        if (ConfMan.hasKey("extrapath"))
    7782                Common::File::addDefaultDirectoryRecursive(ConfMan.get("extrapath"));
    7883