Commit Graph

334 Commits

Author SHA1 Message Date
gijs 9034b5f802 Rename `func_8007ABAC` to `obUnpackThreadStart`
Clean up `obUnpackThreadStart`
2023-10-22 01:33:35 +02:00
gijs 3d4d5d6d97 Decompile `func_8007ABAC`
Rename `D_800AF0D0` to `obThreadUnpackProc`
Rename `D_800AF280` to `obStackUnpackProc`
Rename `D_800AF300` to `obUnpackMesgBuf`
2023-10-22 01:29:30 +02:00
gijs 5c21f71aaa Rename `SP_THREAD_800BE1C0` to `nuStackGfxThread`
Fix the stack of `gfxThread`
2023-10-22 01:08:08 +02:00
gijs 2f423e3bcb Commited code that should not be there 2023-10-22 01:00:19 +02:00
gijs 0872cce98b Fix proper stack sizes
Add `DECLARE_STACK` and `STACK_START` macros
Fix addresses so `nuStackIdle` and `obStackMain` are 0x2000 in size
2023-10-22 00:07:08 +02:00
gijs b035cebc4f Add proper symbol for `nuStackSiMgrThread` 2023-10-21 23:24:00 +02:00
gijs ac627304f0 Add proper symbol for `obStackMain` 2023-10-21 22:05:37 +02:00
gijs 1a1dd9503f Add proper symbol for `nuStackIdle` 2023-10-21 21:23:37 +02:00
gijs a3f0f1a003 Correct `main` segment `bss` VRAM address 2023-10-21 21:23:11 +02:00
gijs 1c112a5db3 Rename `SWAP_BUFFER_FUNC_800A9E88` to `nuGfxTaskEndFunc` 2023-10-21 20:09:52 +02:00
gijs 7668b38b44 Rename `_ob_painful_roll` to `nugfxswapcfb` 2023-10-21 20:06:31 +02:00
gijs a30c8fe5d1 Decompile `nuSiCallBackRemove` 2023-10-21 20:04:51 +02:00
gijs 9ace1366f9 Decompile `nuSiCallBackAdd` 2023-10-21 20:04:22 +02:00
gijs 3fed6ce22a Rename `D_800A9EA0` to `nuSiCallBackList` 2023-10-21 20:01:52 +02:00
gijs ad75b6d5f3 Split `1B530`, remove `nuIdle` definition
Move `nuSiCallBackAdd` to `nusicallbackadd.c`
Move `nuSiCallBackRemove` to `nusicallbackremove.c`
2023-10-21 19:53:42 +02:00
gijs 0f70a6bf41 Change `UnpackProc` to take void * parameter 2023-10-21 19:39:54 +02:00
gijs d803e66638 Rename `MQ_800AF320` to `obUnpackQueue` 2023-10-21 19:28:24 +02:00
gijs 52c76621f6 Delete `lha.c`
Since all functions have been migrated, there's no use for this file anymore.
2023-10-21 19:27:19 +02:00
gijs 40e528eb4d Change signature of `Unpack` 2023-10-21 19:18:17 +02:00
gijs e5f075888a Rename `func_8008A6E0` to `nuContPakOpen` 2023-10-21 19:10:03 +02:00
gijs 1616b6a0b1 Rename `func_8008A730` to `nuContPakGetFree` 2023-10-21 19:08:09 +02:00
gijs 37d8a3185b Rename `func_8008A758` to `nuContPakFileReadWrite` 2023-10-21 19:06:12 +02:00
gijs 16339aaa7c Rename `func_8008A798` to `nuContPakFileOpen` 2023-10-21 19:04:59 +02:00
gijs 556034fa0f Rename `D_800AA014` to `nuContPakGameCode` 2023-10-21 18:19:20 +02:00
gijs 99404d3479 Rename `D_800AA010` to `nuContPakCompanyCode` 2023-10-21 18:18:44 +02:00
gijs f38c7a0f3e Rename `func_8008A850` to `nuContPakFileDelete` 2023-10-21 18:17:27 +02:00
gijs c62b4a3636 Rename `func_8008A8BC` to `nuContPakFileNum` 2023-10-21 18:15:56 +02:00
gijs ebf97965ae Rename `func_80096A90` to `osPfsNumFiles` 2023-10-21 18:15:02 +02:00
gijs 9c23db285b Rename `func_8008A890` to `nuContPakFileState` 2023-10-21 18:13:39 +02:00
gijs 32c7a5b95d Rename `func_8008A8E8` to `nuContPakRepairId` 2023-10-21 18:12:30 +02:00
gijs d4b40689b4 Rename `_ob_dull_silver.c` to `nucontpakmgr.c`
Rename `func_8008A6A0` to `nuContPakMgrInit`
Rename `func_8008A6C0` to `nuContPakMgrRemove`
Rename `D_800AA040` to `nuContPakCallBack`
2023-10-21 18:11:30 +02:00
gijs 30721ffd6c Clean up around `nuContRetrace`
Rename `__calls_read_controller_0` to `nuContRetrace`
Rename `D_800A9FE0` to `nuContReadFunc`
Rename `__set_fp_8008A660` to `nuContReadFuncSet`
Rename `_ob_proper_regret.c` to `nucontreadfuncset.c`
2023-10-21 18:05:22 +02:00
gijs 19551728c2 Split `_ob_classy_fold.c`
Rename `_ob_classy_fold.c` to `nucontmgr.c`
Rename `__GLOBAL_CONTROLLER_DATA` to `nuContData`
Rename `__copy_global_controller_data` to `nuContDataGetAll`
Split `nuContQueryRead` to it's own file
Split `nuContDataGetAll` to it's own file
2023-10-21 17:54:44 +02:00
gijs 3dab52ce7d Rename `_ob_silly_cactus.c` to `nucontdatalock.c` 2023-10-21 17:39:57 +02:00
gijs 37df9533bc Rename `D_800C4B30` to `nuContDataLockKey` 2023-10-21 17:39:09 +02:00
gijs a689d76967 Rename `func_8008A5A0` to `nuContDataLock` 2023-10-21 17:38:17 +02:00
gijs 24e91ef028 Rename `_ob_prized_reading.c` to `nucontmgr.c` 2023-10-21 17:37:13 +02:00
gijs f03558ef48 Rename a couple files and split them into their own
Rename `_ob_icy_coast.c` to `nusimgr.c`
Add decompiled `nuPiInit` to `nupiinit.c`
Add decompiled `nuPiReadRom` to `nupireadrom.c`
2023-10-21 17:33:47 +02:00
gijs a5a10f03cd Rename `_ob_grumpy_island.c` to `nugfxthread.c` and move it to `nu` folder 2023-10-21 17:25:30 +02:00
gijs 6499c2fe8f Rename `__start_copy_global_controller_data` to `nuContDataClose` and `__end_copy_global_controller_data` to `nuContDataOpen` 2023-10-20 21:20:36 +02:00
gijs 92fd0c2213 Rename `func_8008B1D0` to `nuSiCallBackRemove` 2023-10-20 21:17:55 +02:00
gijs 1fa7c6930f Rename `func_8008A334` to `nuContMgrRemove` 2023-10-20 21:15:53 +02:00
gijs 6290ea1045 Clean up `nuContMgrInit` 2023-10-20 19:53:46 +02:00
gijs 5ce4b39095 Rename `obStackMain` to `nuContNum` 2023-10-20 19:53:24 +02:00
gijs 84c9518b4c Rename `__GLOBAL_CONT_STATUS` to `nuContStatus` 2023-10-20 19:49:28 +02:00
gijs 118c79854c Rename `D_800A9FF8` to `nuContCallBack` 2023-10-20 19:47:12 +02:00
gijs c1974f2e83 Rename `OSMESG_800BE194` to `nuContDataMutexBuf` 2023-10-20 19:43:59 +02:00
gijs 7bd8d54843 Rename `MQ_800E9BF0` to `nuContDataMutexQ` 2023-10-20 19:42:55 +02:00
gijs d1d3e1eb1c Rename `OSMESG_800BE190` to `nuContWaitMesgBuf` 2023-10-20 19:41:59 +02:00
gijs 2a951738a0 Rename `MQ_800C4A00` to `nuContWaitMesgQ` 2023-10-20 19:41:07 +02:00