diff options
author | Eugene Sandulenko | 2007-02-10 20:50:00 +0000 |
---|---|---|
committer | Eugene Sandulenko | 2007-02-10 20:50:00 +0000 |
commit | dcfd2e922486654037f3e93ff4338d4a38b20729 (patch) | |
tree | 444f1b7a2979bbd68a23b3dd53eb5311e64c3c7d /engines/agi/agi_v3.cpp | |
parent | 2ff7f04cc7540d2736deaeed3b1126723049c817 (diff) | |
download | scummvm-rg350-dcfd2e922486654037f3e93ff4338d4a38b20729.tar.gz scummvm-rg350-dcfd2e922486654037f3e93ff4338d4a38b20729.tar.bz2 scummvm-rg350-dcfd2e922486654037f3e93ff4338d4a38b20729.zip |
Make Amiga v3 games work.
svn-id: r25477
Diffstat (limited to 'engines/agi/agi_v3.cpp')
-rw-r--r-- | engines/agi/agi_v3.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/engines/agi/agi_v3.cpp b/engines/agi/agi_v3.cpp index a2aac6bc86..f282cfbbe5 100644 --- a/engines/agi/agi_v3.cpp +++ b/engines/agi/agi_v3.cpp @@ -122,7 +122,12 @@ int AgiLoader_v3::init() { Common::File fp; Common::String path; - path = Common::String(_vm->_game.name) + DIR_; + if (_vm->getPlatform() == Common::kPlatformAmiga) { + path = Common::String("dirs"); + _vm->_game.name[0] = 0; // Empty prefix + } else { + path = Common::String(_vm->_game.name) + DIR_; + } if (!fp.open(path)) { printf("Failed to open \"%s\"\n", path.c_str()); |