[Scummvm-cvs-logs] CVS: scummvm/queen resource.cpp,1.15,1.16

Joost Peters joostp at users.sourceforge.net
Fri Oct 17 07:29:13 CEST 2003


Update of /cvsroot/scummvm/scummvm/queen
In directory sc8-pr-cvs1:/tmp/cvs-serv15362/queen

Modified Files:
	resource.cpp 
Log Message:
also look for TBL file in current directory (useful when running the game from CD)

Index: resource.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/queen/resource.cpp,v
retrieving revision 1.15
retrieving revision 1.16
diff -u -d -r1.15 -r1.16
--- resource.cpp	16 Oct 2003 19:40:29 -0000	1.15
+++ resource.cpp	17 Oct 2003 14:26:23 -0000	1.16
@@ -231,6 +231,8 @@
 bool Resource::readTableFile() {
 	File tableFile;
 	tableFile.open(tableFilename, _datafilePath);
+	if (!tableFile.isOpen())	
+		tableFile.open(tableFilename, ""); //try current directory
 	if (tableFile.isOpen() && tableFile.readUint32BE() == 'QTBL') {
 		tableFile.seek(_gameVersion->tableOffset);
 		_resourceEntries = tableFile.readUint16BE();





More information about the Scummvm-git-logs mailing list