Update Rom.

This commit is contained in:
LLCoolDave
2017-07-18 13:42:33 +02:00
parent b6c4bf6bd6
commit 51943b17ef
4 changed files with 7 additions and 6 deletions

4
Rom.py
View File

@@ -8,7 +8,7 @@ import hashlib
import logging
JAP10HASH = '03a63945398191337e896e5771f77173'
RANDOMIZERBASEHASH = '950560f31ee9ac81ce1ab071594f1b4d'
RANDOMIZERBASEHASH = '933dbf06bdfda86ed12d1bd9e0198958'
class JsonRom(object):
@@ -358,7 +358,7 @@ def patch_rom(world, rom, hashtable, quickswap=False, beep='normal', sprite=None
# set rom name
# 21 bytes
rom.write_bytes(0x7FC0, bytearray('ER_042_%09d_' % world.seed, 'utf8') + world.option_identifier.to_bytes(4, 'big'))
rom.write_bytes(0x7FC0, bytearray('ER_043_%09d_' % world.seed, 'utf8') + world.option_identifier.to_bytes(4, 'big'))
# set heart beep rate
rom.write_byte(0x180033, {'off': 0x00, 'half': 0x40, 'quarter': 0x80, 'normal': 0x20}[beep])