mirror of
https://github.com/zeldaret/oot
synced 2026-07-07 05:55:16 -04:00
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:
+4
-1
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user