fix: don't try to load if no .prg file supplied
This commit is contained in:
parent
99ddec954d
commit
81672e4962
1 changed files with 2 additions and 0 deletions
2
orao.py
2
orao.py
|
@ -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())
|
||||
|
||||
|
|
Loading…
Reference in a new issue