mirror of
https://github.com/MarioSpore/Grinch-AP.git
synced 2025-10-21 20:21:32 -06:00
Pokemon RB: apworld fixes (#2042)
This commit is contained in:
@@ -2,7 +2,7 @@ import os
|
||||
import hashlib
|
||||
import Utils
|
||||
import bsdiff4
|
||||
from copy import deepcopy
|
||||
import pkgutil
|
||||
from worlds.Files import APDeltaPatch
|
||||
from .text import encode_text
|
||||
from .items import item_table
|
||||
@@ -12,7 +12,6 @@ from .rom_addresses import rom_addresses
|
||||
from .regions import PokemonRBWarp, map_ids
|
||||
from . import poke_data
|
||||
|
||||
|
||||
def write_quizzes(self, data, random):
|
||||
|
||||
def get_quiz(q, a):
|
||||
@@ -198,8 +197,8 @@ def generate_output(self, output_directory: str):
|
||||
game_version = self.multiworld.game_version[self.player].current_key
|
||||
data = bytes(get_base_rom_bytes(game_version))
|
||||
|
||||
with open(os.path.join(os.path.dirname(__file__), f'basepatch_{game_version}.bsdiff4'), 'rb') as stream:
|
||||
base_patch = bytes(stream.read())
|
||||
base_patch = pkgutil.get_data(__name__, f'basepatch_{game_version}.bsdiff4')
|
||||
|
||||
data = bytearray(bsdiff4.patch(data, base_patch))
|
||||
|
||||
basemd5 = hashlib.md5()
|
||||
|
||||
Reference in New Issue
Block a user