diff --git a/LttPClient.py b/LttPClient.py index e2c1751e..adc11ebe 100644 --- a/LttPClient.py +++ b/LttPClient.py @@ -510,7 +510,7 @@ async def get_snes_devices(ctx: Context): return devices -async def snes_connect(ctx: Context, address): +async def snes_connect(ctx: Context, address, deviceIndex = -1): global SNES_RECONNECT_DELAY if ctx.snes_socket is not None and ctx.snes_state == SNESState.SNES_CONNECTED: if ctx.rom: @@ -539,13 +539,13 @@ async def snes_connect(ctx: Context, address): device = devices[ctx.snes_attached_device[0]] elif numDevices > 1: if deviceIndex == -1: - logger.info("Found " + str(numDevices) + " SNES devices; connect to one with /snes