Adding in error message for FF1 if player name is empty in the ROM

This commit is contained in:
jtoyoda 2022-05-21 11:28:31 -06:00 committed by Fabian Dill
parent 2b8a0f8cd8
commit 0c80cd017f
1 changed files with 3 additions and 0 deletions

View File

@ -187,6 +187,9 @@ async def nes_sync_task(ctx: FF1Context):
asyncio.create_task(parse_locations(data_decoded['locations'], ctx, False))
if not ctx.auth:
ctx.auth = ''.join([chr(i) for i in data_decoded['playerName'] if i != 0])
if ctx.auth == '':
logger.info("Invalid ROM detected. No player name built into the ROM. Please regenerate"
"the ROM using the same link but adding your slot name")
if ctx.awaiting_rom:
await ctx.server_auth(False)
except asyncio.TimeoutError: