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:
parent
e989cb7ace
commit
4775fd4a7e
39 changed files with 47 additions and 59 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue