[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)
This commit is contained in:
t3hf1gm3nt 2023-08-10 17:26:25 -04:00 committed by Fabian Dill
parent c9404d75b0
commit 8d6b2dfc9c
1 changed files with 1 additions and 1 deletions

View File

@ -192,7 +192,7 @@ class TLoZWorld(World):
# Remove map/compass check so they're always on # 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 # 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. # 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 = bsdiff4.patch(rom.read(), base_patch)
rom_data = bytearray(rom_data) rom_data = bytearray(rom_data)
# Set every item to the new nothing value, but keep room flags. Type 2 boss roars should # Set every item to the new nothing value, but keep room flags. Type 2 boss roars should