[Scummvm-git-logs] scummvm master -> 36250e4fa1b628e8e579a8d6c4e131d8037c3f5e
bluegr
noreply at scummvm.org
Fri Nov 20 23:19:04 UTC 2026
This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://api.github.com/repos/scummvm/scummvm .
Summary:
36250e4fa1 ALCACHOFA: V2: Fix compilation with MSVC
Commit: 36250e4fa1b628e8e579a8d6c4e131d8037c3f5e
https://github.com/scummvm/scummvm/commit/36250e4fa1b628e8e579a8d6c4e131d8037c3f5e
Author: Filippos Karapetis (bluegr at gmail.com)
Date: 2026-11-21T01:18:02+02:00
Commit Message:
ALCACHOFA: V2: Fix compilation with MSVC
"or" is a reserved keyword
Changed paths:
engines/alcachofa/game-v2.cpp
diff --git a/engines/alcachofa/game-v2.cpp b/engines/alcachofa/game-v2.cpp
index 7cca12370ba..d8e1db626b9 100644
--- a/engines/alcachofa/game-v2.cpp
+++ b/engines/alcachofa/game-v2.cpp
@@ -262,7 +262,7 @@ public:
return hasChanges ? u32String.encode() : alternativeAnimationName(path, variant + 1);
} else if (variant == 2 || variant == 3) {
// For the switch filesystem we have to work even harder to restore UTF8 (both upper- and lowercase)
- const char or = variant == 3 ? 0x20 : 0;
+ const char orMask = variant == 3 ? 0x20 : 0;
char *tempStart = new char[path.size() * 2];
char *tempPtr = tempStart;
for (uint i = 0; i < path.size(); i++) {
@@ -274,7 +274,7 @@ public:
case 0xD1:
case 0xC9:
*tempPtr++ = 0xC3;
- *tempPtr++ = path[i] & ~0x40 | or;
+ *tempPtr++ = path[i] & ~0x40 | orMask;
break;
default:
*tempPtr++ = path[i];
More information about the Scummvm-git-logs
mailing list