From 2768fa24fc809168784d3cde79fcb4ac6ad513c0 Mon Sep 17 00:00:00 2001 From: Sven Hesse Date: Tue, 21 Nov 2006 13:28:45 +0000 Subject: - Fixed the crashes in Gob1 EGA and Gob2 Demo - Fixed the compile error in GobEngine::saveGame on some systems svn-id: r24756 --- engines/gob/game.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'engines/gob/game.cpp') 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) { -- cgit v1.2.3