From d31e54e5cd3c138480d4034d1704a762f3b26070 Mon Sep 17 00:00:00 2001 From: CaitSith2 Date: Sun, 22 Mar 2020 10:56:38 -0700 Subject: [PATCH] Force the rom to be reread on reconnect if rom... (#51) ... is not one of the expected player roms. This is all that was preventing things from being 100% automatic, if an incorrect rom was already loaded in the connected snes state. --- MultiClient.py | 1 + 1 file changed, 1 insertion(+) diff --git a/MultiClient.py b/MultiClient.py index ef18cbf0..eb07342e 100644 --- a/MultiClient.py +++ b/MultiClient.py @@ -666,6 +666,7 @@ async def process_server_cmd(ctx : Context, cmd, args): ctx.password = None await server_auth(ctx, True) if 'InvalidRom' in args: + ctx.rom = None raise Exception( 'Invalid ROM detected, please verify that you have loaded the correct rom and reconnect your snes (/snes)') if 'SlotAlreadyTaken' in args: