From 81672e49626b064d879cddeeaa88c76eeac27e83 Mon Sep 17 00:00:00 2001 From: shokre Date: Sat, 18 Sep 2021 21:59:54 +0200 Subject: [PATCH] fix: don't try to load if no .prg file supplied --- orao.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/orao.py b/orao.py index 995b6e6..ccb701e 100755 --- a/orao.py +++ b/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())