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

sev- noreply at scummvm.org
Fri Mar 31 22:19:23 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:
f200ed2d1a DIRECTOR: Punyencode screenshot filename


Commit: f200ed2d1ab74f0d206fe8bd2609594c60334314
    https://github.com/scummvm/scummvm/commit/f200ed2d1ab74f0d206fe8bd2609594c60334314
Author: Eugene Sandulenko (sev at scummvm.org)
Date: 2023-04-01T00:18:45+02:00

Commit Message:
DIRECTOR: Punyencode screenshot filename

Changed paths:
    engines/director/score.cpp


diff --git a/engines/director/score.cpp b/engines/director/score.cpp
index 82bc313a770..3db5485fed1 100644
--- a/engines/director/score.cpp
+++ b/engines/director/score.cpp
@@ -22,6 +22,7 @@
 #include "common/config-manager.h"
 #include "common/file.h"
 #include "common/memstream.h"
+#include "common/punycode.h"
 #include "common/substream.h"
 
 #include "audio/audiostream.h"
@@ -1072,7 +1073,7 @@ void Score::screenShot() {
 	Graphics::Surface *newSurface = rawSurface.convertTo(requiredFormat_4byte, _vm->getPalette());
 	Common::String currentPath = _vm->getCurrentPath().c_str();
 	Common::replace(currentPath, Common::String(g_director->_dirSeparator), "-"); // exclude dir separator from screenshot filename prefix
-	Common::String prefix = Common::String::format("%s%s", currentPath.c_str(), _movie->getMacName().c_str());
+	Common::String prefix = Common::String::format("%s%s", currentPath.c_str(), Common::punycode_encodefilename(_movie->getMacName()).c_str());
 	Common::String filename = dumpScriptName(prefix.c_str(), kMovieScript, g_director->_framesRan, "png");
 
 	Common::DumpFile screenshotFile;




More information about the Scummvm-git-logs mailing list