Migrate DKC3 to APDeltaPatch (#838)

* Add DKC3 to APDeltaPatch

* Undo unintended commit

* More undoing

* Remove else clause
This commit is contained in:
PoryGone
2022-07-28 19:51:22 -04:00
committed by GitHub
parent 2ff7e83ad9
commit 07450bb83d
2 changed files with 18 additions and 5 deletions

View File

@@ -1,5 +1,5 @@
import Utils
from Patch import read_rom
from Patch import read_rom, APDeltaPatch
from .Locations import lookup_id_to_name, all_locations
from .Levels import level_list, level_dict
@@ -529,6 +529,15 @@ def patch_rom(world, rom, player, active_level_list):
rom.write_byte(0x3B97EA, 0xEA)
class DKC3DeltaPatch(APDeltaPatch):
hash = USHASH
game = "Donkey Kong Country 3"
patch_file_ending = ".apdkc3"
@classmethod
def get_source_data(cls) -> bytes:
return get_base_rom_bytes()
def get_base_rom_bytes(file_name: str = "") -> bytes:
base_rom_bytes = getattr(get_base_rom_bytes, "base_rom_bytes", None)