[jak2] force-envmap? hack (#2316)

Also affects texscroll and ripple, but I'm not sure what would be good
places to test those.
This commit is contained in:
ManDude
2023-03-11 22:13:55 +00:00
committed by GitHub
parent a1dee19d0d
commit 0c64d48b0d
3 changed files with 8 additions and 3 deletions
@@ -92,5 +92,7 @@ def update_all_blocks(game_name, block_dict):
final_lines.append(line)
i = i + 1
# Update the file contents
with open(path, "w") as f:
f.writelines(final_lines)
# Don't write a new file unless we have to, though
if lines != final_lines:
with open(path, "w") as f:
f.writelines(final_lines)