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.
This commit is contained in:
CaitSith2
2020-03-22 10:56:38 -07:00
committed by GitHub
parent 2811cc9b66
commit d31e54e5cd

View File

@@ -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: