1
0
Fork 0
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:
Lucas Shaw 2020-04-18 18:40:27 -07:00 committed by GitHub
parent 4961eb0a90
commit 21750d5aee
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
47 changed files with 709 additions and 747 deletions

View file

@ -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!")