diff options
author | Sven Hesse | 2006-11-21 13:28:45 +0000 |
---|---|---|
committer | Sven Hesse | 2006-11-21 13:28:45 +0000 |
commit | 2768fa24fc809168784d3cde79fcb4ac6ad513c0 (patch) | |
tree | 5448797e78304046d294c06fab37cbdafc0e36aa /engines/gob/game.cpp | |
parent | fada662a1f01a18dc020b5af02798d47650f7a4a (diff) | |
download | scummvm-rg350-2768fa24fc809168784d3cde79fcb4ac6ad513c0.tar.gz scummvm-rg350-2768fa24fc809168784d3cde79fcb4ac6ad513c0.tar.bz2 scummvm-rg350-2768fa24fc809168784d3cde79fcb4ac6ad513c0.zip |
- Fixed the crashes in Gob1 EGA and Gob2 Demo
- Fixed the compile error in GobEngine::saveGame on some systems
svn-id: r24756
Diffstat (limited to 'engines/gob/game.cpp')
-rw-r--r-- | engines/gob/game.cpp | 7 |
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) { |