aboutsummaryrefslogtreecommitdiff
path: root/engines/gob/game.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'engines/gob/game.cpp')
-rw-r--r--engines/gob/game.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/engines/gob/game.cpp b/engines/gob/game.cpp
index 0807eb0094..e4c4b2fc2a 100644
--- a/engines/gob/game.cpp
+++ b/engines/gob/game.cpp
@@ -366,16 +366,21 @@ int16 Game::adjustKey(int16 key) {
return key - 0x20;
}
-void Game::loadTotFile(char *path) {
+int32 Game::loadTotFile(char *path) {
int16 handle;
+ int32 size;
+ size = -1;
handle = _vm->_dataio->openData(path);
if (handle >= 0) {
_vm->_dataio->closeData(handle);
+ size = _vm->_dataio->getDataSize(path);
_totFileData = _vm->_dataio->getData(path);
} else {
_totFileData = 0;
}
+
+ return size;
}
void Game::loadExtTable(void) {