fix: don't try to load if no .prg file supplied

This commit is contained in:
shokre 2021-09-18 21:59:54 +02:00
parent 99ddec954d
commit 81672e4962

View file

@ -86,6 +86,8 @@ while running:
running = False
if pkeys[pygame.K_F8]:
if MEM_LOAD_PRG is None:
break
print("LOADING: %s" % MEM_LOAD_PRG)
ba = bytearray(open(MEM_LOAD_PRG, "rb").read())