From 8d6b2dfc9c79e3c1992839641cf3be0092feb0ee Mon Sep 17 00:00:00 2001 From: t3hf1gm3nt <59876300+t3hf1gm3nt@users.noreply.github.com> Date: Thu, 10 Aug 2023 17:26:25 -0400 Subject: [PATCH] [TLOZ] Fix filepath error for base patch using os.path.join was causing duplicate parts of the filepath in certain environments. turns out it's not needed when loading the basepatch in our current world structure. this should hopefully fix genning issues on the RC beta site (and presumably the main site once the RC turns into the release) --- worlds/tloz/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/worlds/tloz/__init__.py b/worlds/tloz/__init__.py index 2227a7c5..20ab003e 100644 --- a/worlds/tloz/__init__.py +++ b/worlds/tloz/__init__.py @@ -192,7 +192,7 @@ class TLoZWorld(World): # Remove map/compass check so they're always on # Removing a bit from the boss roars flags, so we can have more dungeon items. This allows us to # go past 0x1F items for dungeon items. - base_patch = get_data(__name__, os.path.join(os.path.dirname(__file__), "z1_base_patch.bsdiff4")) + base_patch = get_data(__name__, "z1_base_patch.bsdiff4") rom_data = bsdiff4.patch(rom.read(), base_patch) rom_data = bytearray(rom_data) # Set every item to the new nothing value, but keep room flags. Type 2 boss roars should