[Scummvm-git-logs] scummvm master -> 418e15ef52c1004ab61f2983d4a86c4e813c46a4

sev- noreply at scummvm.org
Fri Jun 17 13:13:57 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:
418e15ef52 WAGE: Added support for punycoded file names and added first entry with use of it


Commit: 418e15ef52c1004ab61f2983d4a86c4e813c46a4
    https://github.com/scummvm/scummvm/commit/418e15ef52c1004ab61f2983d4a86c4e813c46a4
Author: Eugene Sandulenko (sev at scummvm.org)
Date: 2022-06-17T15:13:25+02:00

Commit Message:
WAGE: Added support for punycoded file names and added first entry with use of it

Changed paths:
    engines/wage/detection_tables.h
    engines/wage/wage.cpp


diff --git a/engines/wage/detection_tables.h b/engines/wage/detection_tables.h
index ed94e91ad4e..eb6f95214b5 100644
--- a/engines/wage/detection_tables.h
+++ b/engines/wage/detection_tables.h
@@ -35,6 +35,7 @@ static const ADGameDescription gameDescriptions[] = {
 	FANGAME("3rd Floor", "140883954b7cd89b0ffabde6ee0073d4", 281167), // alt version
 	BIGGAME("afm", "v1.8", "Another Fine Mess 1.8", "8bbec64ffe9deee4ff48d27f01176814", 1420467),
 	BIGGAME("amot", "v1.8", "A Mess O' Trouble 1.8", "57de8f1f79a24fa1a296aa10242c3648", 1842848),
+	FANGAMEND("The Ashland Revolution", "xn--The Ashland Revolution Demo-uc9p", "18f1f5d1081b9a5676ccfb0c3b857059", 144767), // Original file name "The Ashland Revolution Demo†"
 	FANGAMEND("The Ashland Revolution", "The Ashland Revolution Demo", "18f1f5d1081b9a5676ccfb0c3b857059", 144767), // Original file name "The Ashland Revolution Demo†"
 	FANGAME("The Axe-orcist", "9718b72e86a9727bbd68e12fa992b268", 308508),
 	FANGAME("Brownie's Dream", "379f2c810efc18bad932049d331df1b6", 440448),
diff --git a/engines/wage/wage.cpp b/engines/wage/wage.cpp
index 60113af91a5..d1850c10adc 100644
--- a/engines/wage/wage.cpp
+++ b/engines/wage/wage.cpp
@@ -48,6 +48,7 @@
 #include "common/debug-channels.h"
 #include "common/error.h"
 #include "common/events.h"
+#include "common/punycode.h"
 #include "common/system.h"
 
 #include "engines/engine.h"
@@ -107,7 +108,7 @@ Common::Error WageEngine::run() {
 
 	// Your main event loop should be (invoked from) here.
 	_resManager = new Common::MacResManager();
-	if (!_resManager->open(getGameFile()))
+	if (!_resManager->open(Common::punycode_decodepath(getGameFile()).toString('/')))
 		error("Could not open %s as a resource fork", getGameFile());
 
 	_world = new World(this);




More information about the Scummvm-git-logs mailing list