diff options
author | Arnaud Boutonné | 2010-09-16 23:03:03 +0000 |
---|---|---|
committer | Arnaud Boutonné | 2010-09-16 23:03:03 +0000 |
commit | c7b38c45101cfcaafc60aaec4a8817c45dffca7c (patch) | |
tree | 259981f8ece2b138393a07a3a8726f694b387cbb /engines/hugo/hugo.cpp | |
parent | 16557884b6d694b217877813126859687cc8b59b (diff) | |
download | scummvm-rg350-c7b38c45101cfcaafc60aaec4a8817c45dffca7c.tar.gz scummvm-rg350-c7b38c45101cfcaafc60aaec4a8817c45dffca7c.tar.bz2 scummvm-rg350-c7b38c45101cfcaafc60aaec4a8817c45dffca7c.zip |
HUGO: Fix H1 DOS initialization
Fix a bug in hugo.dat loading and initialize properly Hugo1 DOS
svn-id: r52755
Diffstat (limited to 'engines/hugo/hugo.cpp')
-rw-r--r-- | engines/hugo/hugo.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/engines/hugo/hugo.cpp b/engines/hugo/hugo.cpp index 8dc1ada4d5..80ae532cf9 100644 --- a/engines/hugo/hugo.cpp +++ b/engines/hugo/hugo.cpp @@ -258,7 +258,10 @@ Common::Error HugoEngine::run() { } void HugoEngine::initMachine() { - file().readBackground(_numScreens - 1); // Splash screen + if (_gameVariant == 3) + readScreenFiles(0); + else + file().readBackground(_numScreens - 1); // Splash screen readObjectImages(); // Read all object images if (_platform == Common::kPlatformWindows) readUIFImages(); // Read all uif images (only in Win versions) @@ -1397,6 +1400,7 @@ char **HugoEngine::loadTextsVariante(Common::File &in, uint16 *arraySize) { res = (char **)malloc(sizeof(char *) * numTexts); res[0] = pos; in.read(res[0], entryLen); + res[0] += DATAALIGNMENT; } else { in.read(pos, entryLen); } @@ -1467,6 +1471,7 @@ char ***HugoEngine::loadTextsArray(Common::File &in) { res = (char **)malloc(sizeof(char *) * numTexts); res[0] = pos; in.read(res[0], entryLen); + res[0] += DATAALIGNMENT; } else { in.read(pos, entryLen); } |