[Scummvm-git-logs] scummvm master -> 315641e880cab4ada92231cfb2507123397600e6
athrxx
noreply at scummvm.org
Thu May 30 19:32:53 UTC 2024
This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .
Summary:
315641e880 SCUMM: fix launcher options for Steam Mac versions
Commit: 315641e880cab4ada92231cfb2507123397600e6
https://github.com/scummvm/scummvm/commit/315641e880cab4ada92231cfb2507123397600e6
Author: athrxx (athrxx at scummvm.org)
Date: 2024-05-30T21:32:04+02:00
Commit Message:
SCUMM: fix launcher options for Steam Mac versions
Changed paths:
engines/scumm/detection_internal.h
diff --git a/engines/scumm/detection_internal.h b/engines/scumm/detection_internal.h
index d78b72ee7aa..ca4c2f46404 100644
--- a/engines/scumm/detection_internal.h
+++ b/engines/scumm/detection_internal.h
@@ -866,7 +866,7 @@ static Common::String customizeGuiOptions(const DetectorResult &res) {
// These games often have no detection entries of their own and therefore come with all the DOS audio options.
// We clear them here to avoid confusion and add the appropriate default sound option below. The games from
// version 5 onwards seem to have correct sound options in the detection tables.
- if (res.game.version < 5 && (res.game.platform == Common::kPlatformAmiga || res.game.platform == Common::kPlatformMacintosh || res.game.platform == Common::kPlatformC64))
+ if (res.game.version < 5 && (res.game.platform == Common::kPlatformAmiga || (res.game.platform == Common::kPlatformMacintosh && strncmp(res.extra, "Steam", 6)) || res.game.platform == Common::kPlatformC64))
midiflags = MDT_NONE;
static const uint mtypes[] = {MT_PCSPK, MT_CMS, MT_PCJR, MT_ADLIB, MT_C64, MT_AMIGA, MT_APPLEIIGS, MT_TOWNS, MT_PC98, MT_SEGACD, 0, 0, 0, 0, MT_MACINTOSH};
@@ -901,8 +901,12 @@ static Common::String customizeGuiOptions(const DetectorResult &res) {
// No default sound here, since we don't support it.
break;
case Common::kPlatformMacintosh:
- defaultRenderOption = GUIO_RENDERMACINTOSH;
- defaultSoundOption = GUIO_MIDIMAC;
+ if (!strncmp(res.extra, "Steam", 6)) {
+ defaultRenderOption = GUIO_RENDERVGA;
+ } else {
+ defaultRenderOption = GUIO_RENDERMACINTOSH;
+ defaultSoundOption = GUIO_MIDIMAC;
+ }
break;
case Common::kPlatformFMTowns:
defaultRenderOption = GUIO_RENDERFMTOWNS;
@@ -913,7 +917,7 @@ static Common::String customizeGuiOptions(const DetectorResult &res) {
// No default sound here, since we don't support it.
break;
case Common::kPlatformDOS:
- defaultRenderOption = (!strcmp(res.extra, "EGA") || !strcmp(res.extra, "V1") || !strcmp(res.extra, "V2")) ? GUIO_RENDEREGA : GUIO_RENDERVGA;
+ defaultRenderOption = (!strncmp(res.extra, "EGA", 4) || !strncmp(res.extra, "V1", 3) || !strncmp(res.extra, "V2", 3)) ? GUIO_RENDEREGA : GUIO_RENDERVGA;
break;
case Common::kPlatformUnknown:
// For targets that don't specify the platform (often happens with SCUMM6+ games) we stick with default VGA.
More information about the Scummvm-git-logs
mailing list