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

athrxx noreply at scummvm.org
Sun Nov 15 17:23:10 UTC 2026


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:
d6c1bdeb45 SNATCHER: fix detection build if Snatcher is disabled


Commit: d6c1bdeb459586d0551b28821949c754f4d8dfe9
    https://github.com/scummvm/scummvm/commit/d6c1bdeb459586d0551b28821949c754f4d8dfe9
Author: athrxx (athrxx at scummvm.org)
Date: 2026-11-15T18:22:34+01:00

Commit Message:
SNATCHER: fix detection build if Snatcher is disabled

Changed paths:
    engines/snatcher/fantranslations.cpp


diff --git a/engines/snatcher/fantranslations.cpp b/engines/snatcher/fantranslations.cpp
index bf682b8f2ec..b190d3a5ddb 100644
--- a/engines/snatcher/fantranslations.cpp
+++ b/engines/snatcher/fantranslations.cpp
@@ -63,6 +63,9 @@ FanTranslationHandler::~FanTranslationHandler() {
 }
 
 const uint8 *FanTranslationHandler::process(uint32 addr, const uint8 *data) {
+// The fantranslation.o module is included in the detection plugin, but that only needs the static functions (and not
+// this one here). We add an #ifdef guard here, since the MemMapping dependency isn't included in the detection plugin.
+#ifdef ENABLE_SNATCHER
 	if (_mode == kTranslate && _gameTranslateableData) {
 		for (int i = 0; i < 100; ++i) {
 			if (!_gameTranslateableData[i])
@@ -79,6 +82,7 @@ const uint8 *FanTranslationHandler::process(uint32 addr, const uint8 *data) {
 		int fileNo = (addr < MemMapping::MEM_SCRIPT_LOCATION) ? _scdFileNo : (addr >= MemMapping::MEM_MODULE_LOCATION ? _gfxFileNo : _scriptFileNo);
 		updateDataTable(addr, data, _gameTranslateableData, _mode, 256, fileNo);
 	}
+#endif
 	return data;
 }
 




More information about the Scummvm-git-logs mailing list