[Scummvm-cvs-logs] SF.net SVN: scummvm: [23723] scummvm/trunk

wjpalenstijn at users.sourceforge.net wjpalenstijn at users.sourceforge.net
Fri Aug 18 23:55:18 CEST 2006


Revision: 23723
Author:   wjpalenstijn
Date:     2006-08-18 14:55:11 -0700 (Fri, 18 Aug 2006)
ViewCVS:  http://svn.sourceforge.net/scummvm/?rev=23723&view=rev

Log Message:
-----------
slightly changed patch #1521412: Hardcoded path for theme files

Modified Paths:
--------------
    scummvm/trunk/configure
    scummvm/trunk/gui/ThemeNew.cpp
Modified: scummvm/trunk/configure
===================================================================
--- scummvm/trunk/configure	2006-08-18 21:14:28 UTC (rev 23722)
+++ scummvm/trunk/configure	2006-08-18 21:55:11 UTC (rev 23723)
@@ -309,6 +309,7 @@
   --prefix=DIR           use this prefix for installing ScummVM [/usr/local]
   --bindir=DIR           directory to install the scummvm binary in [PREFIX/bin]
   --mandir=DIR           directory to install the manpage in [PREFIX/man]
+  --datadir=DIR          directory to install the data files in [PREFIX/share]
 
 Special configuration feature:
   --host=HOST            cross-compile to target HOST (arm-linux, ...)
@@ -500,6 +501,9 @@
       --mandir=*)
         _mandir=`echo $ac_option | cut -d '=' -f 2`
         ;;
+      --datadir=*)
+        _datadir=`echo $ac_option | cut -d '=' -f 2`
+        ;;
       *)
         echo "error: unrecognised option: $ac_option
 Try \`$0 --help' for more information." >&2
@@ -1187,7 +1191,11 @@
 #
 test -z "$_bindir" && _bindir="$_prefix/bin"
 test -z "$_mandir" && _mandir="$_prefix/man"
+test -z "$_datadir" && _datadir="$_prefix/share"
 
+DEFINES="$DEFINES -DDATA_PATH=\\\"$_datadir/scummvm\\\""
+
+
 #
 # Check which engines ("frontends") are to be built
 #

Modified: scummvm/trunk/gui/ThemeNew.cpp
===================================================================
--- scummvm/trunk/gui/ThemeNew.cpp	2006-08-18 21:14:28 UTC (rev 23722)
+++ scummvm/trunk/gui/ThemeNew.cpp	2006-08-18 21:55:11 UTC (rev 23723)
@@ -76,6 +76,10 @@
 	if (ConfMan.hasKey("themepath"))
 		Common::File::addDefaultDirectory(ConfMan.get("themepath"));
 
+#ifdef DATA_PATH
+	Common::File::addDefaultDirectoryRecursive(DATA_PATH);
+#endif
+
 	if (ConfMan.hasKey("extrapath"))
 		Common::File::addDefaultDirectoryRecursive(ConfMan.get("extrapath"));
 


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.





More information about the Scummvm-git-logs mailing list