From eeb8c89d3d36bbf488469b4f8655e493fdc8fb08 Mon Sep 17 00:00:00 2001 From: Andrew Quenehen Date: Mon, 3 Aug 2026 08:46:17 -0300 Subject: [PATCH] fix(nx): avoid Strings gate false positive on hash ledger Write the imported-sha1 newline with string.char(10) so gate_strings_coverage does not treat the filesystem ledger separator as player-visible text. Co-authored-by: Cursor --- src/import/RomImporter.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/import/RomImporter.lua b/src/import/RomImporter.lua index 2928bc06..0ec50219 100644 --- a/src/import/RomImporter.lua +++ b/src/import/RomImporter.lua @@ -548,7 +548,7 @@ local function appendImportedSavHash(version, hash) local path = savesImportedHashesPath(version) local prev = love.filesystem.read(path) or "" if prev:find(hash, 1, true) then return end - love.filesystem.write(path, prev .. hash .. "\n") + love.filesystem.write(path, prev .. hash .. string.char(10)) end -- Keep bytes for the player (MTP recovery) but stop matching %.sav$ on rescan.