aboutsummaryrefslogtreecommitdiff
path: root/engines/agi
diff options
context:
space:
mode:
authorEugene Sandulenko2007-02-10 20:50:00 +0000
committerEugene Sandulenko2007-02-10 20:50:00 +0000
commitdcfd2e922486654037f3e93ff4338d4a38b20729 (patch)
tree444f1b7a2979bbd68a23b3dd53eb5311e64c3c7d /engines/agi
parent2ff7f04cc7540d2736deaeed3b1126723049c817 (diff)
downloadscummvm-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')
-rw-r--r--engines/agi/agi_v3.cpp7
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());