ref: d5a3d7f76cc92928222a981981ce8b8f682d2085
parent: b85e91a33657a60d256ab4a2cb30b07bddfe944f
author: Keaton Greve <keatongreve@google.com>
date: Wed Aug 31 11:27:27 EDT 2022
Fix compile_resources automatic ROM path selection (#34)
--- a/tables/compile_resources.py
+++ b/tables/compile_resources.py
@@ -61,8 +61,7 @@
print_int_array('kDialogueText', new_r, 'uint8', True, 16, file = f)
f.close()
-ROM = util.LoadedRom(sys.argv[1])
-
+ROM = util.LoadedRom(sys.argv[1] if len(sys.argv) >= 2 else None)
kCompSpritePtrs = [
0x10f000,0x10f600,0x10fc00,0x118200,0x118800,0x118e00,0x119400,0x119a00,