diff options
author | Eugene Sandulenko | 2017-03-21 23:38:39 +0100 |
---|---|---|
committer | Eugene Sandulenko | 2017-03-21 23:44:51 +0100 |
commit | 3bb70ee70c09b1b65310ecc6801216751c9eacfd (patch) | |
tree | 9ca21377bf4fc0532368662a701a24442af04b4f /engines/director/lingo/lingo-funcs.cpp | |
parent | 9ab68d71d8d1c70e57935f8c4eb3d3632183e76c (diff) | |
download | scummvm-rg350-3bb70ee70c09b1b65310ecc6801216751c9eacfd.tar.gz scummvm-rg350-3bb70ee70c09b1b65310ecc6801216751c9eacfd.tar.bz2 scummvm-rg350-3bb70ee70c09b1b65310ecc6801216751c9eacfd.zip |
DIRECTOR: Lingo: Open '.MMM' files on Windows
Diffstat (limited to 'engines/director/lingo/lingo-funcs.cpp')
-rw-r--r-- | engines/director/lingo/lingo-funcs.cpp | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/engines/director/lingo/lingo-funcs.cpp b/engines/director/lingo/lingo-funcs.cpp index 307d79a0a2..0f2110d8f1 100644 --- a/engines/director/lingo/lingo-funcs.cpp +++ b/engines/director/lingo/lingo-funcs.cpp @@ -182,14 +182,15 @@ void Lingo::func_goto(Datum &frame, Datum &movie) { Common::String cleanedFilename; - for (const byte *p = (const byte *)movie.u.s->c_str(); *p; p++) - if (*p >= 0x20 && *p <= 0x7f) - cleanedFilename += (const char) *p; - bool fileExists = false; if (_vm->getPlatform() == Common::kPlatformMacintosh) { Common::MacResManager resMan; + + for (const byte *p = (const byte *)movie.u.s->c_str(); *p; p++) + if (*p >= 0x20 && *p <= 0x7f) + cleanedFilename += (const char) *p; + if (resMan.open(*movie.u.s)) { fileExists = true; cleanedFilename = *movie.u.s; @@ -198,6 +199,8 @@ void Lingo::func_goto(Datum &frame, Datum &movie) { } } else { Common::File file; + cleanedFilename = *movie.u.s + ".MMM"; + if (file.open(*movie.u.s)) { fileExists = true; cleanedFilename = *movie.u.s; |