mirror of
https://github.com/MarioSpore/Grinch-AP.git
synced 2025-10-21 12:11:33 -06:00
encode patch explicitly with utf-8-sig (unicode with marker for unicode
This commit is contained in:
2
Patch.py
2
Patch.py
@@ -34,7 +34,7 @@ def generate_patch(rom: bytes, metadata=None) -> bytes:
|
||||
patch = bsdiff4.diff(get_base_rom_bytes(), rom)
|
||||
patch = yaml.dump({"meta": metadata,
|
||||
"patch": patch})
|
||||
return patch.encode()
|
||||
return patch.encode(encoding="utf-8-sig")
|
||||
|
||||
|
||||
def create_patch_file(rom_file_to_patch: str, server: str = "") -> str:
|
||||
|
Reference in New Issue
Block a user