[Scummvm-devel] another small data path fix

Jonathan Gray khalek at linuxgamers.net
Sat Mar 2 03:47:15 CET 2002


Just a small fix to make the CD version of loom work again

There was a _exe_name that needed replacing with _gameDataPath
The patch is sitting on the patch tracker on sf.net





-------------- next part --------------
--- scummvm/resource.cpp	Sat Mar  2 18:28:02 2002
+++ /tmp/scummvm/resource.cpp	Sat Mar  2 22:13:03 2002
@@ -70,7 +70,12 @@
                         _encbyte = (_features & GF_USE_KEY) ? 0x69 : 0;
                 } else if(!(_features & GF_SMALL_NAMES)) {
 			if(room==0 || room>=900) {
-				sprintf(buf, "%s//%.3d.lfl",_exe_name,room);	
+				if (!scumm_stricmp(_gameDataPath, "")) {
+					sprintf(buf, "%.3d.lfl", room);
+				}
+				else {
+					sprintf(buf, "%s/%.3d.lfl",_gameDataPath,room);	
+				}
 				_encbyte = 0;
 				if (openResourceFile(buf)) {
 					return;


More information about the Scummvm-devel mailing list