[Scummvm-git-logs] scummvm master -> 08a69b0532faee4e20e6d367494a5e48c29426ae
sev-
noreply at scummvm.org
Fri Jan 20 22:44:10 UTC 2023
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:
08a69b0532 ENGINES: Fix punycode encoding of directory separator in unknown game report
Commit: 08a69b0532faee4e20e6d367494a5e48c29426ae
https://github.com/scummvm/scummvm/commit/08a69b0532faee4e20e6d367494a5e48c29426ae
Author: Thierry Crozat (criezy at scummvm.org)
Date: 2023-01-20T23:44:05+01:00
Commit Message:
ENGINES: Fix punycode encoding of directory separator in unknown game report
Changed paths:
engines/game.cpp
diff --git a/engines/game.cpp b/engines/game.cpp
index fddc22e6e83..1e3ffb752df 100644
--- a/engines/game.cpp
+++ b/engines/game.cpp
@@ -269,8 +269,9 @@ Common::U32String generateUnknownGameReport(const DetectedGames &detectedGames,
if (!md5Prefix.empty())
md5Prefix += ":";
+ Common::Path filepath(strchr(filenames[i].c_str(), ':') + 1);
report += Common::String::format(" {\"%s\", 0, \"%s%s\", %lld},\n",
- Common::punycode_encodefilename(Common::U32String(strchr(filenames[i].c_str(), ':') + 1)).c_str(), // Skip the md5 prefix
+ filepath.punycodeEncode().toString().c_str(), // Skip the md5 prefix
md5Prefix.c_str(), file.md5.c_str(), (long long)file.size);
}
More information about the Scummvm-git-logs
mailing list