add license command to client to have MIT compliant compiled client possible

This commit is contained in:
Fabian Dill 2020-02-02 06:14:51 +01:00
parent 80b03fc037
commit cc369c3631
1 changed files with 3 additions and 1 deletions

View File

@ -751,7 +751,9 @@ async def console_loop(ctx : Context):
snes_buffered_write(ctx, RECV_ITEM_PLAYER_ADDR, bytes([0]))
else:
logging.info('Invalid item: ' + item)
if command[0] == "/license":
with open("LICENSE") as f:
logging.info(f.read())
await snes_flush_writes(ctx)
def get_item_name_from_id(code):