diff options
author | Filippos Karapetis | 2016-08-22 19:48:56 +0300 |
---|---|---|
committer | Filippos Karapetis | 2016-08-22 19:48:56 +0300 |
commit | 39307d1f4da51d9adc78da70ba1eddec237ff48b (patch) | |
tree | 77d55360b6b8efa66307af73671d8d3dc2b54a6b | |
parent | 88cffa3220b7a0a2fa79a3315b4c7c4e31069a8e (diff) | |
download | scummvm-rg350-39307d1f4da51d9adc78da70ba1eddec237ff48b.tar.gz scummvm-rg350-39307d1f4da51d9adc78da70ba1eddec237ff48b.tar.bz2 scummvm-rg350-39307d1f4da51d9adc78da70ba1eddec237ff48b.zip |
SCI: Return the correct platform in kPlatform for Mac versions
-rw-r--r-- | engines/sci/engine/kmisc.cpp | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/engines/sci/engine/kmisc.cpp b/engines/sci/engine/kmisc.cpp index 448d7bb8a3..ff7370a002 100644 --- a/engines/sci/engine/kmisc.cpp +++ b/engines/sci/engine/kmisc.cpp @@ -536,6 +536,7 @@ reg_t kMacPlatform(EngineState *s, int argc, reg_t *argv) { } enum kSciPlatforms { + kSciPlatformMacintosh = 0, kSciPlatformDOS = 1, kSciPlatformWindows = 2 }; @@ -574,7 +575,12 @@ reg_t kPlatform(EngineState *s, int argc, reg_t *argv) { return kMacPlatform(s, argc - 1, argv + 1); // Otherwise, fall through case kPlatformGetPlatform: - return make_reg(0, (isWindows) ? kSciPlatformWindows : kSciPlatformDOS); + if (isWindows) + return make_reg(0, kSciPlatformWindows); + else if (g_sci->getPlatform() == Common::kPlatformMacintosh) + return make_reg(0, kSciPlatformMacintosh); + else + return make_reg(0, kSciPlatformDOS); case kPlatformUnknown5: // This case needs to return the opposite of case 6 to get hires graphics return make_reg(0, !isWindows); @@ -606,6 +612,8 @@ reg_t kPlatform32(EngineState *s, int argc, reg_t *argv) { return make_reg(0, kSciPlatformDOS); case Common::kPlatformWindows: return make_reg(0, kSciPlatformWindows); + case Common::kPlatformMacintosh: + return make_reg(0, kSciPlatformMacintosh); default: error("Unknown platform %d", g_sci->getPlatform()); } |