mirror of
https://github.com/MarioSpore/Grinch-AP.git
synced 2025-10-21 04:01:32 -06:00
Adventure: Fix basepatch access from other working directories (#1600)
This commit is contained in:
@@ -436,7 +436,7 @@ async def patch_and_run_game(patch_file, ctx):
|
||||
logger.info(msg, extra={'compact_gui': True})
|
||||
ctx.gui_error('Error', msg)
|
||||
|
||||
with open("data/adventure_basepatch.bsdiff4", "rb") as file:
|
||||
with open(Utils.user_path("data", "adventure_basepatch.bsdiff4"), "rb") as file:
|
||||
basepatch = bytes(file.read())
|
||||
|
||||
base_patched_rom_data = bsdiff4.patch(base_rom, basepatch)
|
||||
|
Reference in New Issue
Block a user