mirror of
https://github.com/MarioSpore/Grinch-AP.git
synced 2025-10-21 20:21:32 -06:00
reset snes state when resetting rom
This commit is contained in:
@@ -666,6 +666,7 @@ async def process_server_cmd(ctx : Context, cmd, args):
|
|||||||
ctx.password = None
|
ctx.password = None
|
||||||
await server_auth(ctx, True)
|
await server_auth(ctx, True)
|
||||||
if 'InvalidRom' in args:
|
if 'InvalidRom' in args:
|
||||||
|
ctx.snes_state = SNES_DISCONNECTED
|
||||||
ctx.rom = None
|
ctx.rom = None
|
||||||
raise Exception(
|
raise Exception(
|
||||||
'Invalid ROM detected, please verify that you have loaded the correct rom and reconnect your snes (/snes)')
|
'Invalid ROM detected, please verify that you have loaded the correct rom and reconnect your snes (/snes)')
|
||||||
|
|||||||
Reference in New Issue
Block a user