1
0
Fork 0
mirror of https://github.com/zeldaret/oot.git synced 2025-07-05 07:24:34 +00: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:
Tharo 2022-06-03 21:33:18 +01:00 committed by GitHub
parent e989cb7ace
commit 4775fd4a7e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
39 changed files with 47 additions and 59 deletions

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