Adventure: Fix basepatch access from other working directories (#1600)

This commit is contained in:
JusticePS 2023-03-26 10:34:18 -07:00 committed by GitHub
parent 963c33c02a
commit e2c4293a6d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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)