Skip to content

Commit 30ec080

Browse files
authored
FFMQ: Reset protection (#2727)
Bizhawk's "hard reset" option fills RAM with 0x55s. This causes game completion to be erroneously flagged, and likely many erroneous location checks with it. This fix checks for 0x55 and will not proceed to process anything if present.
1 parent 79e2f7e commit 30ec080

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

worlds/ffmq/Client.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ async def game_watcher(self, ctx):
7171
received = await snes_read(ctx, RECEIVED_DATA[0], RECEIVED_DATA[1])
7272
data = await snes_read(ctx, READ_DATA_START, READ_DATA_END - READ_DATA_START)
7373
check_2 = await snes_read(ctx, 0xF53749, 1)
74-
if check_1 == b'\x00' or check_2 == b'\x00':
74+
if check_1 in (b'\x00', b'\x55') or check_2 in (b'\x00', b'\x55'):
7575
return
7676

7777
def get_range(data_range):

0 commit comments

Comments
 (0)