From d41ad62f5bf43c98d05c593d5c64a5a42b7c0cee Mon Sep 17 00:00:00 2001 From: stag019 Date: Sat, 14 Mar 2015 02:07:01 -0400 Subject: Move source code into "src/". Update Makefile/scan_includes. --- extras/scan_includes.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'extras/scan_includes.py') diff --git a/extras/scan_includes.py b/extras/scan_includes.py index 7f34e92..466402c 100755 --- a/extras/scan_includes.py +++ b/extras/scan_includes.py @@ -12,15 +12,15 @@ import configuration conf = configuration.Config() def recursive_scan(filename, includes = []): - if (filename[-4:] == '.asm' or filename[-3] == '.tx') and os.path.exists(filename): + if (filename[-4:] == '.asm') and os.path.exists(filename): lines = open(filename).readlines() for line in lines: for directive in ('INCLUDE', 'INCBIN'): if directive in line: line = line[:line.find(';')] if directive in line: - include = line.split('"')[1] - if include not in includes: + include = "src/" + line.split('"')[1] + if include not in includes and include != "src/baserom.gbc": includes += [include] includes = recursive_scan(os.path.join(conf.path, include), includes) break -- cgit v1.2.3