mirror of
https://github.com/bryanthaboi/gen1recomp.git
synced 2026-08-19 20:20:19 +02:00
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 <cursoragent@cursor.com>
This commit is contained in:
@@ -548,7 +548,7 @@ local function appendImportedSavHash(version, hash)
|
|||||||
local path = savesImportedHashesPath(version)
|
local path = savesImportedHashesPath(version)
|
||||||
local prev = love.filesystem.read(path) or ""
|
local prev = love.filesystem.read(path) or ""
|
||||||
if prev:find(hash, 1, true) then return end
|
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
|
end
|
||||||
|
|
||||||
-- Keep bytes for the player (MTP recovery) but stop matching %.sav$ on rescan.
|
-- Keep bytes for the player (MTP recovery) but stop matching %.sav$ on rescan.
|
||||||
|
|||||||
Reference in New Issue
Block a user