diff options
author | Paul Gilbert | 2012-09-26 23:34:10 +1000 |
---|---|---|
committer | Paul Gilbert | 2012-09-26 23:34:10 +1000 |
commit | 1885141be56d3ce0acc58098876488c73ad26d2b (patch) | |
tree | 1d56f0c0dbac8cdf492e7e98663f192ad39b3986 /engines/hopkins/files.cpp | |
parent | ddb4fdcf12f8a0e09d7f9b5583984edec99325cc (diff) | |
download | scummvm-rg350-1885141be56d3ce0acc58098876488c73ad26d2b.tar.gz scummvm-rg350-1885141be56d3ce0acc58098876488c73ad26d2b.tar.bz2 scummvm-rg350-1885141be56d3ce0acc58098876488c73ad26d2b.zip |
HOPKINS: Starting implementation of talk manager
Diffstat (limited to 'engines/hopkins/files.cpp')
-rw-r--r-- | engines/hopkins/files.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/engines/hopkins/files.cpp b/engines/hopkins/files.cpp index 68c32bfde0..4e8eb0d80f 100644 --- a/engines/hopkins/files.cpp +++ b/engines/hopkins/files.cpp @@ -168,7 +168,7 @@ byte *FileManager::LIBERE_FICHIER(byte *ptr) { return PTRNUL; } -bool FileManager::RECHERCHE_CAT(const Common::String &file, int a2) { +byte *FileManager::RECHERCHE_CAT(const Common::String &file, int a2) { byte *ptr = NULL; Common::File f; @@ -266,7 +266,7 @@ bool FileManager::RECHERCHE_CAT(const Common::String &file, int a2) { } // Scan for an entry in the catalogue - int result; + byte *result; bool matchFlag = false; int offsetVal = 0; @@ -304,9 +304,9 @@ bool FileManager::RECHERCHE_CAT(const Common::String &file, int a2) { bload_it(f, catData, GLOBALS.CAT_TAILLE); f.close(); - result = true; + result = catData; } else { - result = false; + result = NULL; } return result; |