Rename and move handwritten asm files (#1254)

* Rename handwritten asm files and move them to src

* Fix progress.py

* Remove handling for asm dir from Makefile
This commit is contained in:
Tharo
2022-06-03 21:33:18 +01:00
committed by GitHub
parent e989cb7ace
commit 4775fd4a7e
39 changed files with 47 additions and 59 deletions
+4 -1
View File
@@ -58,6 +58,9 @@ def GetNonMatchingSize(path):
return size
def IsCFile(objfile):
srcfile = objfile.strip().replace("build/", "").replace(".o", ".c")
return os.path.isfile(srcfile)
mapFile = ReadAllLines("build/z64.map")
curSegment = None
@@ -82,7 +85,7 @@ for line in mapFile:
size = int(lineSplit[2], 16)
objFile = lineSplit[3]
if (section == ".text"):
if (section == ".text" and IsCFile(objFile)):
if (objFile.startswith("build/src")):
src += size