mirror of
https://github.com/zeldaret/oot.git
synced 2025-07-03 06:24:30 +00:00
Naming some functions in libultra_code, decompiling a decent amount. (#77)
* osgetactivequeue ok * osspdevicebusy ok * osGetCurrFaultedThread ok * osSpRawStartDma OK * __osSpSetPc and osViGetCurrentFramebuffer OK * sinf, sins, and sptask OK * coss OK * cosf OK * ran format.sh * Updated PR to use ultratypes * osContStartQuery OK * ran format.sh * Updated PR to fix issues * Made suggested changes
This commit is contained in:
parent
4961eb0a90
commit
21750d5aee
47 changed files with 709 additions and 747 deletions
|
@ -27,13 +27,13 @@ if not os.path.exists("c"):
|
|||
dirs = os.listdir("asm")
|
||||
|
||||
for directory in dirs:
|
||||
if (os.path.isdir("asm\\" + directory)):
|
||||
if (os.path.isdir("asm//" + directory)):
|
||||
continue
|
||||
|
||||
print("Processing asm\\" + directory)
|
||||
print("Processing asm//" + directory)
|
||||
|
||||
folderName = os.path.splitext(directory)[0]
|
||||
lines = ReadAllLines("asm\\" + directory)
|
||||
lines = ReadAllLines("asm//" + directory)
|
||||
functions = list()
|
||||
currentFunction = None
|
||||
|
||||
|
@ -50,11 +50,11 @@ for directory in dirs:
|
|||
if (currentFunction != None):
|
||||
functions.insert(len(functions), currentFunction)
|
||||
|
||||
if not os.path.exists("asm\\" + folderName):
|
||||
os.makedirs("asm\\" + folderName)
|
||||
if not os.path.exists("asm//" + folderName):
|
||||
os.makedirs("asm//" + folderName)
|
||||
|
||||
for func in functions:
|
||||
WriteAllLines("asm\\" + folderName + "\\" + func.funcName + ".s", func.lines)
|
||||
WriteAllLines("asm//" + folderName + "//" + func.funcName + ".s", func.lines)
|
||||
|
||||
cLines = list()
|
||||
|
||||
|
@ -64,6 +64,6 @@ for directory in dirs:
|
|||
for func in functions:
|
||||
cLines.insert(len(cLines), "#pragma GLOBAL_ASM(\"asm/non_matchings/code/" + folderName + "/" + func.funcName + ".s\")\n")
|
||||
|
||||
WriteAllLines("c\\" + folderName + ".c", cLines)
|
||||
WriteAllLines("c//" + folderName + ".c", cLines)
|
||||
|
||||
print("Done!")
|
||||
print("Done!")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue