-
Notifications
You must be signed in to change notification settings - Fork 2
Decompile and name remaining main.c functions #11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
queueRAM
commented
Jan 16, 2026
- Decompile uvSysInit
- Decompile uvFileRead
- Decompile uvFileWrite
- Decompile bootproc
- Decompile uvReadController (formerly func_8022EB38)
- Decompile uvGfxSetFlags (formerly func_802239B4)
- Decompile uvGfxClearFlags (formerly func_802239EC)
- Decompile func_8022E558
- Decompile uvSysInit - Decompile uvFileRead - Decompile uvFileWrite - Decompile bootproc - Decompile uvReadController (formerly func_8022EB38) - Decompile uvGfxSetFlags (formerly func_802239B4) - Decompile uvGfxClearFlags (formerly func_802239EC) - Decompile func_8022E558
|
Huge help from @Bl00D4NGEL getting |
| GLOBAL_ASM_C_FILES := $(shell $(GREP) GLOBAL_ASM $(SRC_DIR) </dev/null 2>/dev/null) | ||
| GLOBAL_ASM_O_FILES := $(foreach file,$(GLOBAL_ASM_C_FILES:.c=.o),$(BUILD_DIR)/$(file)) | ||
|
|
||
| DEFINES := -D_LANGUAGE_C -D_FINALROM -DWIN32 -DNDEBUG -DTARGET_N64 -DCOMPILING_LIBULTRA |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I had to remove -D_FINALROM to get the prototype for __osInitialize_emu() from os_host.h, but there might be a better way to go about this.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This doesn't strike me as correct.
I suspect __osInitialize_emu() is a bad match because it's a generic one-liner that assigns a global variable, and it appears in a translation unit filled with engine functions rather than libultra functions.
Initially I used n64sym to match libultra symbols which tends to produce false positives. Then I learned about flib later, which is not as eager to match ambiguous symbols.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I agree, __osInitialize_emu() doesn't seem correct. I'll put _FINALROM back in and remove the __osInitialize_emu symbol
|
Nice work! I'd just prefer to address the FINALROM concern before merging. |