From e2c4293a6d7a5c0942c863e22ce90ea141a10297 Mon Sep 17 00:00:00 2001 From: JusticePS Date: Sun, 26 Mar 2023 10:34:18 -0700 Subject: [PATCH] Adventure: Fix basepatch access from other working directories (#1600) --- AdventureClient.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/AdventureClient.py b/AdventureClient.py index 4c2cb92c..c4258993 100644 --- a/AdventureClient.py +++ b/AdventureClient.py @@ -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)