[Scummvm-git-logs] scummvm master -> def1f1d3ad33cbe3fdcc31aa71e9d791d2f75824
tag2015
noreply at scummvm.org
Sun Dec 7 14:53:13 UTC 2025
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:
def1f1d3ad AGS: Append game filename In fallback detection
Commit: def1f1d3ad33cbe3fdcc31aa71e9d791d2f75824
https://github.com/scummvm/scummvm/commit/def1f1d3ad33cbe3fdcc31aa71e9d791d2f75824
Author: Walter Agazzi (walter.agazzi at protonmail.com)
Date: 2025-12-07T15:33:46+01:00
Commit Message:
AGS: Append game filename In fallback detection
This changes the default description from "Adventure Game Studio Game" to
"Unknown AGS game (<filename>)" for easier identification (especially in mass add)
Changed paths:
engines/ags/detection.cpp
engines/ags/detection_tables.h
diff --git a/engines/ags/detection.cpp b/engines/ags/detection.cpp
index 90bcef3f8ee..5e772aac8dd 100644
--- a/engines/ags/detection.cpp
+++ b/engines/ags/detection.cpp
@@ -182,6 +182,10 @@ ADDetectedGame AGSMetaEngineDetection::fallbackDetect(const FileMap &allFiles, c
AGS::g_fallbackDesc.desc.filesDescriptions[0].fileSize = (f.size() >= 0xffffffff) ? AD_NO_SIZE : f.size();
AGS::g_fallbackDesc.desc.filesDescriptions[0].md5 = _md5.c_str();
+ // If adding an unknown game, append filename for easier identification
+ if (_gameid.equals("ags"))
+ AGS::g_fallbackDesc.desc.extra = _filenameStr.c_str();
+
ADDetectedGame game(&AGS::g_fallbackDesc.desc);
game.matchedFiles[filename].md5 = _md5;
game.matchedFiles[filename].size = f.size();
diff --git a/engines/ags/detection_tables.h b/engines/ags/detection_tables.h
index b6e5a66d165..ecfb67187f6 100644
--- a/engines/ags/detection_tables.h
+++ b/engines/ags/detection_tables.h
@@ -22,7 +22,7 @@
namespace AGS {
const PlainGameDescriptor GAME_NAMES[] = {
- { "ags", "Adventure Game Studio Game" },
+ { "ags", "Unknown AGS game" },
{ "ags-scan", "AGS Game Scanner" },
// Pre-2.5 games that aren't supported by the current AGS engine
More information about the Scummvm-git-logs
mailing list