Commit Graph

328 Commits

Author SHA1 Message Date
gijs ff290348c5 Rename `obThreadIdle` to `nuThreadIdle` 2023-10-20 18:19:55 +02:00
gijs a8f58de733 Rename `obIdle` to `nuIdle` 2023-10-20 18:18:33 +02:00
gijs ca62a08c7c Rename `__start_controller_thread` to `nuSiMgrRestart` 2023-10-20 18:05:37 +02:00
gijs 9e68866aae Clean up `nuSiMgrStop` 2023-10-20 18:04:51 +02:00
gijs ad71a118fe Rename `func_80089D5C` to `nuSiMgrStop` 2023-10-20 18:04:32 +02:00
gijs 3896f82bbc Rename `func_80089CF8` to `nuSiSendMesg` and clean it up 2023-10-20 18:03:48 +02:00
gijs 6eb644c5cf Rename `__controller_thread_80089D9C` to `nuSiMgrThread` 2023-10-20 18:00:41 +02:00
gijs 12496030a6 Rename `THREAD_CONTROLLER` to `siMgrThread` 2023-10-20 17:57:15 +02:00
gijs 15d4b20eba Rename `D_800BBE60` to `nuSiMesgBuf` 2023-10-20 17:55:48 +02:00
gijs f16e493d79 Rename `MQ_CONTROLLER` to `nuSiMesgQ` 2023-10-20 17:53:56 +02:00
gijs 02e99d32be Rename `obControllerInit` to `nuSiMgrInit` 2023-10-20 17:51:26 +02:00
gijs 56ba9040f4 Move `nuGfxInitEX2` to it's own C file 2023-10-20 17:49:28 +02:00
gijs 094f68127e Rename `func_80089C50` to `nuGfxDisplayOn` and move it into it's own C file 2023-10-20 17:48:01 +02:00
gijs 73120a55ab Rename `black.c` to `nugfxdisplayoff.c` 2023-10-20 17:43:26 +02:00
gijs 031744cb02 Renamed `__SCREEN_IS_NOT_BLACK` to `nuGfxDisplay` 2023-10-20 17:40:42 +02:00
gijs f4de78e2da Renamed `__set_black` to `nuGfxDisplayOff` 2023-10-20 17:38:59 +02:00
gijs 9d669a11af Split `nuGfxTaskAllEndWait` into it's own C file 2023-10-20 17:35:53 +02:00
gijs 42c160f7b9 Rename `_ob_past_brick.c` to `nusched.c` 2023-10-20 17:33:14 +02:00
gijs f0b15433cb Rename `_ob_questionable_glass` to `nugfxswapcfbfuncset` 2023-10-20 17:30:31 +02:00
gijs 5c2961c461 Rename `_ob_thoughtless_van` to `nugfxfuncset` 2023-10-20 17:28:03 +02:00
gijs 2c7212d9b0 Rename `func_80089990` to `nuGfxFuncSet` 2023-10-20 17:26:36 +02:00
gijs 753eb5a7dc Decompile `func_80089990` 2023-10-20 17:26:01 +02:00
gijs d3f8360be2 Move `nuGfxTask` functions to it's own C file 2023-10-20 17:25:02 +02:00
gijs 25048fc641 Split `func_80089990` into it's own C file 2023-10-20 17:22:48 +02:00
gijs 281135d82e Rename `__thread_80089540` to `nuGfxTaskMgr` 2023-10-20 17:19:50 +02:00
gijs 38563897a2 Remove duplicate definition of `nuScCreateScheduler` from `common.h` 2023-10-20 17:16:43 +02:00
gijs 8c7ba403cb Added symbols for `gFrameBuf0` to `gFrameBuf2` and renamed `DISPLAY_LIST_800A9EF0` to `rdpstateinit_dl` 2023-10-20 17:15:16 +02:00
gijs 32951b17af Rename `__SOMETHING_FRAMEBUFFERS` to `FrameBuf` 2023-10-20 17:08:56 +02:00
gijs d781c0572c Rename `func_80089A10` to `nuGfxTaskAllEndWait` 2023-10-20 17:06:25 +02:00
gijs 7987a3fc72 Rename `__something_display_list` to `nuGfxTaskStart` 2023-10-20 17:05:29 +02:00
gijs a330ca4ecb Rename `D_800A9EB0` to `nugfx_ucode` 2023-10-20 17:04:12 +02:00
gijs abe6017825 Rename `D_800C4CE0` to `nuGfxUcode` 2023-10-20 17:02:51 +02:00
gijs eb57aa31f3 Rename `D_800C4B20` to `nuGfxZBuffer` 2023-10-20 17:01:28 +02:00
gijs 33d37c4963 Fix definition of `nuGfxSwapCfb` 2023-10-20 16:52:32 +02:00
gijs 050d7e737d Rename `set_swap_buffer_func` to `nuGfxSwapCfbFuncSet`, `SWAP_BUFFER_FUNC` to `nuGfxSwapCfbFunc` and `__osViSwapBuffer_3` to `nuGfxSwapCfb` 2023-10-20 16:49:45 +02:00
gijs 6327ab0fda Clean up `nuGfxInitEX2` 2023-10-20 16:45:49 +02:00
gijs cb11271360 Rename `THREAD_800BE1C0` to `nuGfxThread` 2023-10-20 16:43:11 +02:00
gijs efdfc38a41 Rename `D_800E79A4` to `nuGfxTaskSpool` 2023-10-20 16:40:51 +02:00
gijs 9349cf282c Rename `D_800AA094` to `nuGfxPreNMIFunc` 2023-10-20 16:39:36 +02:00
gijs e0f5679536 Rename `D_800AA090` to `nuGfxFunc` 2023-10-20 16:38:50 +02:00
gijs 7df2c30851 Rename `OSMESG_800BE1A0` to `nuGfxMesgBuf` 2023-10-20 16:37:04 +02:00
gijs 7b0cc70821 Rename `MQ_800C4C28` to `nuGfxMesgQ` 2023-10-20 16:35:17 +02:00
gijs ae6fa1fd91 Clean up `gfxThread` 2023-10-20 16:34:28 +02:00
gijs e5dc3321ea Rename `__start_thread_800B9C88` to `nuGfxTaskMgrInit` and `__thread_8008AFE0` to `gfxThread` 2023-10-20 16:31:05 +02:00
gijs 319b8ff320 Rename `__start_thread_800BE1C0` to `nuGfxThreadStart` 2023-10-20 16:25:46 +02:00
gijs a0962ddc83 Rename `func_8008A1B0` to `nuGfxInitEX2` 2023-10-20 15:55:05 +02:00
gijs fa955ceb38 Decompile `nuScGetFrameRate` 2023-10-20 15:47:13 +02:00
gijs 1c01e29331 Decompile `nuScSetFrameBufferNum` 2023-10-20 14:54:25 +02:00
gijs b8247208a5 Clean up `nuScEventHandler` 2023-10-20 14:52:48 +02:00
gijs 6dde5925bc Decompile `nuGfxSetCfb` 2023-10-20 12:45:21 +02:00
gijs c23bc3a884 Identify more `nuGfx` variables 2023-10-20 12:44:32 +02:00
gijs c711ee9ea7 Split `nuGfxSetCfb` to C 2023-10-20 12:40:44 +02:00
gijs b41fadc833 Rename `func_80089AB0` to `nuGfxSetCfb` 2023-10-20 12:38:46 +02:00
gijs 0f740013fc Decompile `nuScEventHandler` 2023-10-20 12:30:33 +02:00
gijs 05b93a6faa Decompile `nuScWaitTaskReady` 2023-10-20 12:25:45 +02:00
gijs ad4a954aab Rename `func_8008949C` to `nuScWaitTaskReady` 2023-10-20 12:25:29 +02:00
gijs edec5a8ec0 Decompile `nuScResetClientMesgType` 2023-10-20 12:21:58 +02:00
gijs a0e093a589 Rename `func_800890E4` to `nuScResetClientMesgType` 2023-10-20 12:21:30 +02:00
gijs 19ad06ddec Decompile `nuScEventBroadcast` 2023-10-20 12:19:04 +02:00
gijs 34c7cfa70d Decompile `nuScRemoveClient` 2023-10-20 12:18:28 +02:00
gijs 774f762631 Decompile `nuScAddClient` 2023-10-20 12:16:24 +02:00
gijs 901ff5dc63 Rename `__dma_load_loop` to `nuGfxRetraceWait` 2023-10-20 12:14:16 +02:00
gijs 0d4532eda3 Rename `Stack__dma_load_loop_delete` to `nuScRemoveClient` 2023-10-20 12:09:18 +02:00
gijs 5635db776f Rename `func_80089528` to `nuScSetFrameBufferNum` 2023-10-20 12:07:11 +02:00
gijs 0adce00abb Rename `Stack__dma_load_loop_new` to `nuScAddClient` 2023-10-20 12:03:50 +02:00
gijs 420bf3ce0c Rename `func_80088EFC` to `nuScGetGfxMQ` 2023-10-20 11:59:57 +02:00
gijs 26bd797aa0 Rename `func_80088EF0` to `nuScGetAudioMQ` 2023-10-20 11:57:13 +02:00
gijs a9ae2448a7 Correct `nusched` address 2023-10-20 11:48:26 +02:00
gijs c53a8b95e5 Identified `nuScPreNMIFunc` 2023-10-20 11:27:37 +02:00
gijs 3595244a44 Rename `func_800891A0` to `nuScEventBroadcast` 2023-10-20 11:11:25 +02:00
gijs 05dbe6d9e5 Rename `__MAIN_NOT_NULL_INF_LOOP` to `nuScPreNMIFlag` 2023-10-20 11:02:49 +02:00
gijs f1b5fa0528 Rename `D_800C4BCC` to `nuScRetraceCounter` 2023-10-20 11:01:00 +02:00
gijs 5f804ef0db Rename `__thread_800893C0` to `nuScExecuteGraphics` 2023-10-20 10:55:05 +02:00
gijs 0e2f7a99ad Rename `__thread_80089200` to `nuScExecuteAudio` 2023-10-20 10:53:50 +02:00
gijs f9188543c7 Rename `__thread_80088F08` to `nuScEventHandler` 2023-10-20 10:51:34 +02:00
gijs 2a3e5aaf05 Clean up use of `nusched.graphicsRequestBuf` 2023-10-20 10:48:49 +02:00
gijs eeddbc0da8 Rename `D_800E7A18` to `nuIdleFunc` 2023-10-20 10:46:50 +02:00
gijs d570045631 Rename `boot` to `nuBoot` 2023-10-20 10:43:13 +02:00
gijs 60f66d3b43 Change a couple functions which are now identified as coming from `nuSystem` 2023-10-20 10:35:17 +02:00
gijs ffce6e7f11 Change `main.c` to use defines in `__set_vi_mode` 2023-10-19 19:43:03 +02:00
gijs a34eed808c Rename `func_8007AB7C` to `obSendUnpackMesg` 2023-10-19 19:30:19 +02:00
gijs a5afbd93be Decompile `func_8007AB7C` 2023-10-19 19:28:58 +02:00
gijs 9227a20d5a Move stack struct of `UnpackProc` to `common.h` with name OBUnpackMesg 2023-10-19 19:27:32 +02:00
gijs 97c9f3041a Move definition of `obGetCurrentTimeF` to `common.h` 2023-10-19 19:15:17 +02:00
gijs 2e0df3b558 Rename `func_8007FD10` to `obGetCurrentTimeF` 2023-10-19 19:13:27 +02:00
gijs d4ba1d723e Decompile `func_8007FD10` 2023-10-19 19:10:19 +02:00
gijs 1bb8976741 Decompile `func_8007FD10` 2023-10-19 19:08:54 +02:00
gijs 6a14ae87ed Rename `func_8009C7CC` to `obGetCurrentTime` and move definition to `common.h` 2023-10-19 19:07:42 +02:00
gijs d36a01419a Rename `func_8009C7C0` to `obSetCurrentTime` and move definition to `common.h` 2023-10-19 19:03:13 +02:00
gijs a6217e604c Decompile `func_8009C7C0` 2023-10-19 18:57:02 +02:00
gijs 39db969fd9 Split segment `0x2CBC0` into it's own C file 2023-10-19 18:54:28 +02:00
gijs 2d464a78a4 Clean up and move definitions to `common.h` 2023-10-19 18:50:20 +02:00
gijs 6f3f544f26 Decompile `func_8007382C` 2023-10-19 18:42:31 +02:00
gijs 8a0544efc3 Clean up arguments and move definitions to `common.h` 2023-10-19 18:42:17 +02:00
gijs ef9826c23e Decompiled `__set_vi_mode` 2023-10-19 18:08:18 +02:00
gijs 3a78de26ae Cleaned up `main.c` for consistent formatting 2023-10-19 17:58:39 +02:00
gijs 120e13f0c0 Decompiled `func_80073398`
Changed some other types related to this function
Removed `obMain` for now
2023-10-19 17:11:57 +02:00
gijs b406ea3ad3 Decompiled `func_80071288`
Almost got `obMain`, still needs some fixing
2023-10-18 18:27:11 +02:00
gijs 97b0b10970 Changed `obStackMain` to be used differently in different functions as I think it's an alias 2023-10-18 17:33:01 +02:00
gijs 4f499b1f0f Decompiled `func_800764E0` and fixed `func_80077494` a bit 2023-10-18 17:05:12 +02:00
gijs 9875a517ee Fixed `__read_controller` call 2023-10-18 16:04:32 +02:00
gijs 8afad0eccf Fixed typing of `__GLOBAL_CONTROLLER_DATA_COPY` 2023-10-18 15:37:45 +02:00
gijs 1cb760c99a Decompiled `func_80076E2C` 2023-10-18 14:12:08 +02:00
gijs 6c7da7abc9 Removed address of `__osViSwapBuffer_3` 2023-10-18 13:44:37 +02:00
gijs a7b4a9c109 Decompiled `func_80077494` 2023-10-18 13:30:09 +02:00
gijs ce7f900afd Decompiled `func_80072710` 2023-10-10 13:47:34 +02:00
gijs 961718f707 Decompiled `func_800727D8` 2023-10-10 13:36:03 +02:00
gijs 20a36e05df Decompiled `func_8007337C` 2023-10-10 13:30:01 +02:00
gijs d59bf67d23 Decompiled `func_8007338C` 2023-10-10 13:28:33 +02:00
gijs 8aca547092 Tried decompiling func_8007896C but it didn't match.. 2023-10-10 13:06:42 +02:00
gijs c30c278972 Before I do something stupid... 2023-09-30 09:58:59 +02:00
gijs 2efd0cbbe9 Merged `__read_u32_le` and `UnpackProc` from `lha.c` to `_ob_rabid_jar` 2023-09-30 00:58:19 +02:00
gijs 9e1dd54094 Merged old `_ob_overconfident_mother` with `_ob_rabid_jar` 2023-09-29 18:54:56 +02:00
gijs dccd234f4a Decompiled `UnusedMallocNo` 2023-09-29 18:53:09 +02:00
gijs 80fbf0175e Cleaned up `overlay_table.c` a bit 2023-09-29 13:09:57 +02:00
gijs c63870ac14 Migrated `__OVERLAY_TABLE` to `c` 2023-09-29 12:30:44 +02:00
gijs fd34166b82 Added struct names to several `__OVERLAY_INFO` structures 2023-09-29 12:00:39 +02:00
gijs dd47587e8b Merged previously decompiled functions to named files 2023-09-29 11:47:22 +02:00
gijs cf67e12f81 Delete files without any decompiled functions
Merge some existing decompiled functions into it's actual c file
2023-09-29 11:35:16 +02:00
gijs 9d2e65d8fb Merge `class.c`, `ability.c` and `equipment.c` into `_ob_fierce_selection`
Refactor class function names
2023-09-29 11:32:58 +02:00
gijs f839da2581 Decompiled `func_8017B5BC` 2023-09-29 02:07:05 +02:00
gijs 1c2a037909 Decompiled `func_8017BA2C` 2023-09-29 02:00:16 +02:00
gijs 721b5a2236 Changed `OverlaySomething` to contain function pointer 2023-09-29 01:56:50 +02:00
gijs 26f00605e9 Decompiled `__setup_overlay_79730` 2023-09-29 01:51:49 +02:00
gijs 50717285b5 Confidently figured out the whole `overlay_87200` 2023-09-29 01:46:01 +02:00
gijs 0bcbe130a8 Added more macros for segment symbols 2023-09-29 01:16:00 +02:00
gijs 18af6601e3 Migrated some overlay data 2023-09-29 01:15:41 +02:00
gijs f403aed69a Decompiled `__get_overlay_info_71280_65C8C` 2023-09-28 23:53:55 +02:00
gijs d1b43725bc Changed signature of `__calls_romCopy_8009DA50` 2023-09-28 23:15:59 +02:00
gijs 90b8997de6 Split and migrated `rodata` of `overlay_188B60` 2023-09-28 20:02:08 +02:00
gijs 04dd85feee Fixed `asm` segment `28A7B0` to C in `overlay_286BD0` 2023-09-27 16:38:36 +02:00
gijs 8c4808f801 Migrated `rodata` for `overlay_17F9C0` 2023-09-27 01:53:46 +02:00
gijs 975f45149f Forgot to split a segment in `overlay_286BD0` 2023-09-27 01:47:44 +02:00
gijs fa7b76925a Migrated `rodata` for `overlay_177ED0` 2023-09-27 01:45:08 +02:00
gijs becb22e146 Renamed `func_overlay_145210_801F9EC8_14B0A8` to `__big_render_func_801F9EC8` 2023-09-27 01:38:28 +02:00
gijs aec46b9023 Migrated gfx from `14E530` 2023-09-27 01:34:06 +02:00
gijs 8cef1c9e6f Address to symbol for DISPLAY_LIST_801869C8 2023-09-27 01:10:34 +02:00
gijs 408cdaf436 Decompiled `func_80080798` 2023-09-27 01:07:06 +02:00
gijs 7fd4294f59 Decompiled `func_80080768` 2023-09-27 01:05:10 +02:00
gijs 957de22ea5 Decompiled `func_80080304` 2023-09-27 01:01:37 +02:00
gijs 2861309bd6 Discovered `obPtrPtrDisplayList` 2023-09-27 00:49:40 +02:00
gijs 253726d9f9 Decompiled `func_overlay_145210_801F4C38_145E18` 2023-09-27 00:27:33 +02:00
gijs fabe829cbf Decompiled `func_800737A0` 2023-09-27 00:12:20 +02:00
gijs 4c35308c05 Decompiled `func_80073ED8` 2023-09-26 23:22:45 +02:00
gijs 1fe21e35fe Migrated `rodata` for `segment_song` 2023-09-26 23:10:16 +02:00
gijs 2688fc498a Partially migrated `rodata` for `overlay_286BD0` 2023-09-26 22:42:16 +02:00
gijs a7cb4b67b8 Migrated `rodata` for `overlay_29A4C0` 2023-09-26 21:50:42 +02:00
gijs 6a3df0c7b5 Migrate `rodata` for `overlay_2A8D20` 2023-09-26 21:40:32 +02:00
gijs fda5b9afd9 Migrate `rodata` for `overlay_2AE3C0` 2023-09-26 21:36:42 +02:00
gijs 57499a5a09 Migrated `rodata` for `overlay_FA5E0` 2023-09-26 21:09:13 +02:00