mirror of
https://gitlab.com/xCrystal/pokecrystal-board.git
synced 2024-11-16 11:27:33 -08:00
make include_file faster in the preprocessor
This commit is contained in:
parent
662f442221
commit
fe8476d6bc
@ -556,9 +556,9 @@ def macro_translator(macro, token, line):
|
||||
def include_file(asm):
|
||||
"""This is more reliable than rgbasm/rgbds including files on its own."""
|
||||
|
||||
filename = asm.split("\"")
|
||||
filename = filename[1].replace("\"","").replace("\n","")
|
||||
lines = open(filename, 'r').readlines()
|
||||
filename = asm.split("\"")[1]
|
||||
|
||||
lines = open(filename, "r").readlines()
|
||||
|
||||
for line in lines:
|
||||
read_line(line)
|
||||
|
Loading…
Reference in New Issue
Block a user