diff options
author | Daniel Harding <corrnondacqb@yahoo.com> | 2015-03-19 00:19:59 -0400 |
---|---|---|
committer | Daniel Harding <corrnondacqb@yahoo.com> | 2015-03-19 00:19:59 -0400 |
commit | ae198f05566310d64d201bc8e5b9b54f90c27b7b (patch) | |
tree | d5fe4e6cde4cfa6d37e1a9f04ee267c384b73f42 /extras/scan_includes.py | |
parent | 3c75edba47b89066383a4dae07d225cbc1cbff77 (diff) | |
parent | d41ad62f5bf43c98d05c593d5c64a5a42b7c0cee (diff) |
Merge pull request #6 from stag019/srcrgbgfx
Move source code into "src/". Update Makefile/scan_includes.
Diffstat (limited to 'extras/scan_includes.py')
-rwxr-xr-x | extras/scan_includes.py | 6 |
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 |