mirror of
https://github.com/MarioSpore/Grinch-AP.git
synced 2025-10-21 12:11:33 -06:00
Add ram address for additional checking in demo mode checking
This commit is contained in:
@@ -327,6 +327,8 @@ class GrinchClient(BizHawkClient):
|
|||||||
|
|
||||||
ingame_map_id = int.from_bytes((await bizhawk.read(ctx.bizhawk_ctx, [(
|
ingame_map_id = int.from_bytes((await bizhawk.read(ctx.bizhawk_ctx, [(
|
||||||
0x010000, 1, "MainRAM")]))[0], "little")
|
0x010000, 1, "MainRAM")]))[0], "little")
|
||||||
|
initial_cutscene_checker = int.from_bytes((await bizhawk.read(ctx.bizhawk_ctx, [(
|
||||||
|
0x010094, 1, "MainRAM")]))[0], "little")
|
||||||
|
|
||||||
#If not in game or at a menu, or loading the publisher logos
|
#If not in game or at a menu, or loading the publisher logos
|
||||||
if ingame_map_id <= 0x04 or ingame_map_id >= 0x35:
|
if ingame_map_id <= 0x04 or ingame_map_id >= 0x35:
|
||||||
@@ -339,6 +341,7 @@ class GrinchClient(BizHawkClient):
|
|||||||
# Reset our demo mode checker just in case the game is in demo mode.
|
# Reset our demo mode checker just in case the game is in demo mode.
|
||||||
self.demo_mode_buffer = 0
|
self.demo_mode_buffer = 0
|
||||||
self.ingame_log = False
|
self.ingame_log = False
|
||||||
|
if initial_cutscene_checker != 1:
|
||||||
return False
|
return False
|
||||||
|
|
||||||
# Update the previous map we were on to be the current map.
|
# Update the previous map we were on to be the current map.
|
||||||
|
Reference in New Issue
Block a user