[Scummvm-git-logs] scummvm master -> dac2d795d5fc6f207e37fa3d9791fae52e99dabb

criezy noreply at scummvm.org
Sun Feb 13 22:20:15 UTC 2022


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:
dac2d795d5 AGS: Fix access to files in game path subdirectories for some games


Commit: dac2d795d5fc6f207e37fa3d9791fae52e99dabb
    https://github.com/scummvm/scummvm/commit/dac2d795d5fc6f207e37fa3d9791fae52e99dabb
Author: Thierry Crozat (criezy at scummvm.org)
Date: 2022-02-13T22:20:06Z

Commit Message:
AGS: Fix access to files in game path subdirectories for some games

Most AGS games use either a single file or a flat structure. But
a few don't, and if they were released on Windows the script may
be trying to use path with backslashes. There is code to convert
those to slashes, but it was only enabled in the original code
for the Windows version of the interpreter, and never enabled in
ScummVM. Enabling that code allows playing those Windows game on
any platform. Let's hope no AGS game released for another platform
uses backslashes as part of their file names...

Changed paths:
    engines/ags/shared/util/path.cpp


diff --git a/engines/ags/shared/util/path.cpp b/engines/ags/shared/util/path.cpp
index 4774fd1ea8a..76f63b37f68 100644
--- a/engines/ags/shared/util/path.cpp
+++ b/engines/ags/shared/util/path.cpp
@@ -143,9 +143,9 @@ bool IsRelativePath(const String &path) {
 }
 
 void FixupPath(String &path) {
-#if AGS_PLATFORM_OS_WINDOWS
+//#if AGS_PLATFORM_OS_WINDOWS
 	path.Replace('\\', '/'); // bring Windows path separators to uniform style
-#endif
+//#endif
 	path.MergeSequences('/');
 }
 




More information about the Scummvm-git-logs mailing list