aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoost Peters2003-10-17 14:26:23 +0000
committerJoost Peters2003-10-17 14:26:23 +0000
commit4fe33a1dae09704835ea29608cdfcdf46eabcd7c (patch)
tree9073f6982d852312d29727a4cb430a35a22e512c
parentf4b5626fd763a22d96d39757c9688ffcf13bb823 (diff)
downloadscummvm-rg350-4fe33a1dae09704835ea29608cdfcdf46eabcd7c.tar.gz
scummvm-rg350-4fe33a1dae09704835ea29608cdfcdf46eabcd7c.tar.bz2
scummvm-rg350-4fe33a1dae09704835ea29608cdfcdf46eabcd7c.zip
also look for TBL file in current directory (useful when running the game from CD)
svn-id: r10861
-rw-r--r--queen/resource.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/queen/resource.cpp b/queen/resource.cpp
index cff1d9d331..e6cc1b64d3 100644
--- a/queen/resource.cpp
+++ b/queen/resource.cpp
@@ -231,6 +231,8 @@ const GameVersion *Resource::detectGameVersion(uint32 dataFilesize) {
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();