Commit Graph

328 Commits

Author SHA1 Message Date
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
gijs d6cb74bc70 Migrated `rodata` for `overlay_14EBE0` 2023-09-26 21:07:49 +02:00
gijs 9d7aea8819 Enabled `rodata` migration on `overlay_171EA0` 2023-09-26 21:00:48 +02:00
gijs 8ba64e87ab Enabled `rodata` migration on `overlay_165FC0` 2023-09-26 20:57:12 +02:00
gijs 1b31dcb739 Enabled `rodata` migration on `overlay_145210` 2023-09-26 20:40:51 +02:00
gijs 11195f4c50 Renamed some files to keep the format 2023-09-26 20:32:46 +02:00
gijs 84a59ff8a8 Enabled `rodata` migration for `overlay_79730` 2023-09-26 20:22:16 +02:00
gijs a88c64d461 Enabled `rodata` migration for segment `overlay_6E660` 2023-09-26 20:18:48 +02:00
gijs a9df203452 Enabled `rodata` migration on `overlay_66E10` 2023-09-26 19:46:56 +02:00
gijs 8cb139c2b9 Enabled a lot of `rodata` migration on `segment_obdata` 2023-09-26 19:46:15 +02:00
gijs 90918976bb Deleted a lot of old files
Enabled more `rodata` migrations
2023-09-26 19:36:24 +02:00
gijs feafad101d Added SHIFT-JIS encoding to splat
Added `iconv` to build commands to support SHIFT-JIS
Removed `rodata` from `main`
2023-09-26 19:11:25 +02:00
gijs 5b0d058b23 Decompiled some display list function
Renamed PTR_DISPLAY_LIST to obPtrDisplayList
2023-09-26 01:02:42 +02:00
gijs 8ce8d6974b Hopefully made the main segment nicer 2023-09-26 00:26:56 +02:00
gijs 5cf59a6169 Found obGetStrategyName 2023-09-25 23:53:11 +02:00
gijs 197963c330 Added more `rodata` segments 2023-09-25 23:47:45 +02:00
gijs f42427a595 Migrated rodata to main 2023-09-25 17:33:22 +02:00
gijs 64c4d17d08 Migrated Gfx at 0x800A9EF0 2023-09-25 17:01:40 +02:00
gijs e8cd06000d Renamed 5FC0 and added it back to compilation
Deletec 1C0E0 because of suspected libultra symbol
2023-09-25 16:59:20 +02:00
gijs bd344c296c Renamed main_ to obMain along with it's Thread and Stack 2023-09-25 16:39:31 +02:00
gijs 8457613831 Moved symbol_addrs to its own folder
Identified a ton of libmus functions
2023-09-25 16:34:55 +02:00
gijs fdc88c6c5f Renaming files as big cleanup 2023-09-25 14:29:07 +02:00
gijs be75462e23 Removed some files, cleaning up 2023-09-25 14:03:39 +02:00
gijs 1be08a1eeb Migrated Gfx at 0x8018FD10 2023-09-25 14:00:32 +02:00
gijs f5c77ef45b Migrated Gfx at 0x8018FC80 2023-09-25 13:58:55 +02:00
gijs d2716fefca Migrated Gfx at 0x8018FA70 2023-09-25 13:57:04 +02:00
gijs 951cffb672 Changed `rodata` to `data` 2023-09-25 13:24:05 +02:00
gijs 507eb12304 Migrated Gfx at 0x80186E20 2023-09-24 12:09:00 +02:00
gijs 4630e837a1 Migrated Gfx at 0x80186DD0 2023-09-24 12:07:08 +02:00
gijs 85558b8e13 Migrated Gfx at 0x80186D90 2023-09-24 12:05:18 +02:00
gijs c7872bf945 Migrated Gfx at 0x80186D00 2023-09-24 11:54:52 +02:00
gijs d855e67fa1 Migrated Gfx at 0x80186C60 2023-09-24 11:53:04 +02:00
gijs e1731946b6 Migrated Gfx at 0x80186BD0 2023-09-24 11:50:47 +02:00
gijs 6bd0f4be08 Migrated some Gfx 2023-09-24 11:47:54 +02:00
gijs 240d653e1e Fixed building again 2023-09-24 00:36:29 +02:00
gijs a96d1bb002 Removing `expected` on `make distclean`
A lot of cleaning up of unnecessary `c` files
2023-09-23 23:51:15 +02:00
gijs 9bdc119986 Fixed a couple segments and turned them into c files
Added libc headers
2023-09-23 17:41:59 +02:00
gijs cdaafadde3 Migrated a ton of data like class and ability.
Merged the above together with element names and class names
2023-09-21 22:02:52 +02:00
gijs 3509e5083f Identified more stuff 2023-09-21 19:27:59 +02:00
Ogre a9ef9c937f Commented out a lot of stuff 2023-09-21 11:43:07 +02:00
Ogre a2e8586e55 Made a mess and fixed it (hopefully) 2023-09-17 00:30:31 +02:00
Ogre 42b7627502 Refactored to a new coding style
Migrated a ton of data...
Build: OK
2023-09-16 23:40:25 +02:00
Ogre 875fe0f103 Phew.. It builds again.
Removed `libreultra`
Added `ultralib` with compile flag `BUILD_VERSION_J`
Changed Makefile to reflect above change
2023-09-16 16:57:17 +02:00
Ogre eb7f3f9cd6 Renamed some globals to according to their types 2023-09-16 11:29:40 +02:00
Ogre 704340437d Decompiled more functions
Decompiled data
Before I do something stupid
Build: OK
2023-09-16 11:13:02 +02:00
Ogre a10f6e5db2 Figured out first display list thingy!
Added `ASSERT_SIZE` macro to make sure sizes match
Added compile_flags for mips
2023-09-15 15:43:35 +02:00
Ogre d3dd7a908e Found `item` data
Edited Makefile to handle the new splits
Added `ctx_includes.h`
Build: OK
2023-09-15 02:16:33 +02:00
Ogre 9de7f45844 Refactored a whole bunch more
Build: OK
2023-09-15 01:02:28 +02:00
Ogre 5f32f2a1c5 Changed 43100 to `class` 2023-09-15 00:52:39 +02:00
Ogre f2b3efc96b Refactored `item` to `equipment`
Build: OK
2023-09-15 00:44:47 +02:00
Ogre 140710227f Added new docs
Identified more functions
Before I do something stupid...
Build: OK
2023-09-15 00:28:31 +02:00
Ogre 85d80f4097 Lots of stuff... 2023-09-14 16:42:51 +02:00
Ogre 053f0d5cda Changed ability_data, class_data and item_data scripts
Identified more fields in ClassData
Identified more elements
Decompiled class_data functions
2023-09-12 18:31:47 +02:00
Ogre 7c766d07f9 Renamed data scripts to consistent naming scheme
Renamed `mus` to `libmus`
Discovered ClassData
Added `libmus,h`
Decompiled `ability_` functions
2023-09-12 01:04:41 +02:00
Ogre 0003efebb1 Corrected AbilityData 2023-09-11 01:53:42 +02:00
Ogre f0091a98ae Created `docs` folder for helpful game guides
Figured out a more correct layout of items
Decompiled a couple more functions
Build: OK
2023-09-11 01:35:47 +02:00
Ogre 32432fe0a8 Identified more symbols 2023-09-08 03:31:38 +02:00
Ogre b4947f743f Decompiled more code
Changed some tools
Build: OK
2023-09-08 01:20:21 +02:00
Ogre 16fc7c310e Found attack data (maybe)
Build: OK
2023-09-07 02:25:02 +02:00
Ogre b9900a1ffb Found more overlay boundaries 2023-09-07 00:23:21 +02:00
Ogre c1a88eda40 Completed refactor
Renamed `43100.c` to `item.c`
Build: OK
2023-09-06 17:50:58 +02:00
Ogre f6d96522a8 Decompiled a lot about items
Before refactor overlay1
2023-09-06 17:22:43 +02:00
Ogre d5f043ed1c Identified more symbols
Decompiled more functions
Improved .gitignore
Before I do something stupid...
2023-09-06 15:00:27 +02:00
Ogre 2df8bc6570 Renamed unnamed file to `lha`
Added more symbols
2023-09-06 12:59:02 +02:00
Ogre 12c9bd1e51 Changed `character.c` to `character.h`
Identified more overlays
2023-09-05 01:02:08 +02:00
Ogre a3fca11463 Added Makefile command to generate the context file
Decompiled more code
Before I do something stupid...
2023-09-04 20:17:25 +02:00
Ogre 4672fe01cb Added a lot of symbols
Decompiled more code
2023-09-03 17:30:01 +02:00
Ogre 90b9b43846 Added back m2ctx which now works
Cleaned up extern functions to common.h
Added more decompiled code
2023-09-03 11:20:26 +02:00
Ogre e579899bd0 Decompiled a couple functions 2023-09-02 00:27:33 +02:00
Ogre 1d45805511 Identified more code 2023-09-01 21:21:24 +02:00
Ogre 5c248739e1 Finished 1B3E0
Finished 42C30
Finished 1B510
Finished 19DD0
2023-09-01 14:38:06 +02:00
Ogre 0352f1bfd7 Identified `rodata` sections
Reversed more code
2023-09-01 13:10:37 +02:00
Ogre 83f47e75fc Added specific optimization flags for `boot.c`
Added `bool` type
Identified more symbols
Finished `black.c`
Finished `boot.c`
2023-09-01 11:48:06 +02:00
Ogre 7ad1f85eac Added ultra64.h to common.h
Identified more code
Reversed a bit more
2023-09-01 00:29:02 +02:00
Ogre f2140d27a6 func_800E9C20 ahw yeah 2023-08-31 00:14:34 +02:00
Ogre 5c92cf672d Decompiled more code 2023-08-30 23:58:03 +02:00
Ogre 388632b8dd More code 2023-08-30 14:56:52 +02:00
Ogre 3fa9d72769 Ignore build folder
Remove include folders from Makefile
Updated symbols
Reverse a couple of functions
2023-08-30 10:44:13 +02:00
Ogre b7c264fe1e Added a ton of information
Added assembler and compiler
Build: OK (run `make`)
2023-08-30 01:41:21 +02:00