[Scummvm-git-logs] scummvm master -> 10a0908b4a104e49bf530f8ced03a8e3b31bf814
bluegr
noreply at scummvm.org
Fri Dec 27 08:14:01 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:
10a0908b4a DIRECTOR: Add CD detection patch for Pink Gear Collection
Commit: 10a0908b4a104e49bf530f8ced03a8e3b31bf814
https://github.com/scummvm/scummvm/commit/10a0908b4a104e49bf530f8ced03a8e3b31bf814
Author: eientei95 (einstein95 at users.noreply.github.com)
Date: 2024-12-27T10:13:58+02:00
Commit Message:
DIRECTOR: Add CD detection patch for Pink Gear Collection
Changed paths:
engines/director/lingo/lingo-patcher.cpp
diff --git a/engines/director/lingo/lingo-patcher.cpp b/engines/director/lingo/lingo-patcher.cpp
index 3b1a50dc5c8..a81e1a5c868 100644
--- a/engines/director/lingo/lingo-patcher.cpp
+++ b/engines/director/lingo/lingo-patcher.cpp
@@ -360,7 +360,8 @@ on togCh\r\
end\r\
";
-/* AMBER: Journeys Beyond has a check to ensure that the CD and hard disk data are on
+/*
+ * AMBER: Journeys Beyond has a check to ensure that the CD and hard disk data are on
* different drive letters. ScummVM will pretend that every drive letter contains the
* game contents, so we need to hotpatch the CD detection routine to return D:.
*/
@@ -380,6 +381,34 @@ on exitFrame \r\
end \r\
";
+/*
+ * Pink Gear Collection has a check to ensure that the CD and hard disk data are on
+* different drive letters by checking if "PINKPINK.TXT" is the first file in the
+* "PG_WORLD\PINKCD" folder. Later, it iterates over every drive letter to find the CD
+* using the same method. Removing this check as ScummVM will pretend that every drive
+* letter contains the game contents.
+*/
+const char *const pinkGearDriveDetectionFix1 = " \
+on startMovie\r\
+ global oricolor, projname, mtype\r\
+ cursor(200)\r\
+ set oricolor to the colorDepth\r\
+ set projname to the pathName\r\
+ if oricolor <> 8 then\r\
+ sound fadeIn 1, 1 * 60\r\
+ puppetSound(\"BAMEN11k\")\r\
+ go(\"noH2\")\r\
+ else\r\
+ set mtype to 2\r\
+ go(\"01\")\r\
+ end if\r\
+";
+
+const char *const pinkGearDriveDetectionFix2 = " \
+on exitFrame\r\
+ go(1, \"C:\\PG_WORLD\\A_IN01\")\r\
+";
+
struct ScriptHandlerPatch {
const char *gameId;
const char *extra;
@@ -406,6 +435,8 @@ struct ScriptHandlerPatch {
{"vnc", nullptr, kPlatformWindows, "VNC2\\SHARED.DXR", kMovieScript, 1248, DEFAULT_CAST_LIB, &vncEnableCheats},
{"amber", nullptr, kPlatformWindows, "AMBER_F\\AMBER_JB.EXE", kMovieScript, 7, DEFAULT_CAST_LIB, &amberDriveDetectionFix},
{"frankenstein", nullptr, kPlatformWindows, "FRANKIE.EXE", kScoreScript, 21, DEFAULT_CAST_LIB, &frankensteinSwapFix},
+ {"pinkgear", nullptr, kPlatformWindows, "GOTOPINK.EXE", kMovieScript, 4, DEFAULT_CAST_LIB, &pinkGearDriveDetectionFix1},
+ {"pinkgear", nullptr, kPlatformWindows, "GOTOPINK.EXE", kScoreScript, 6, DEFAULT_CAST_LIB, &pinkGearDriveDetectionFix2},
{nullptr, nullptr, kPlatformUnknown, nullptr, kNoneScript, 0, 0, nullptr},
};
More information about the Scummvm-git-logs
mailing list