[Scummvm-cvs-logs] SF.net SVN: scummvm: [27380] scummvm/branches/branch-0-10-0/base/main.cpp

wjpalenstijn at users.sourceforge.net wjpalenstijn at users.sourceforge.net
Tue Jun 12 23:21:23 CEST 2007


Revision: 27380
          http://scummvm.svn.sourceforge.net/scummvm/?rev=27380&view=rev
Author:   wjpalenstijn
Date:     2007-06-12 14:21:21 -0700 (Tue, 12 Jun 2007)

Log Message:
-----------
add DATA_PATH to directory search list when starting game

Modified Paths:
--------------
    scummvm/branches/branch-0-10-0/base/main.cpp

Modified: scummvm/branches/branch-0-10-0/base/main.cpp
===================================================================
--- scummvm/branches/branch-0-10-0/base/main.cpp	2007-06-12 20:36:08 UTC (rev 27379)
+++ scummvm/branches/branch-0-10-0/base/main.cpp	2007-06-12 21:21:21 UTC (rev 27380)
@@ -190,6 +190,11 @@
 	if (ConfMan.hasKey("extrapath", Common::ConfigManager::kApplicationDomain))
 		Common::File::addDefaultDirectoryRecursive(ConfMan.get("extrapath", Common::ConfigManager::kApplicationDomain));
 
+#ifdef DATA_PATH
+	// Add the global DATA_PATH to the directory search list
+	Common::File::addDefaultDirectoryRecursive(DATA_PATH);
+#endif
+
 	// On creation the engine should've set up all debug levels so we can use
 	// the command line arugments here
 	Common::enableSpecialDebugLevelList(edebuglevels);


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