summaryrefslogtreecommitdiff
path: root/extras/scan_includes.py
diff options
context:
space:
mode:
Diffstat (limited to 'extras/scan_includes.py')
-rwxr-xr-xextras/scan_includes.py6
1 files changed, 3 insertions, 3 deletions
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