Luke Street
3b8300d0d2
Merge decomp/main into dusk
...
Merges 44 upstream commits from zeldaret/tp decomp/main.
Conflict resolutions:
- .github/workflows/build.yml: keep deleted (not needed for PC port)
- README.md: keep PC port README
- J3DAnimation.h: keep OFFSET_PTR macro + add upstream forward decl
- J3DModelLoader.h: keep BE(u32) mBlockNum + add field_0x1c
- d_com_inf_game.h: keep PC port inlines + add upstream declarations
- global.h: keep MULTI_CHAR macro + add FABSF macro
- JUTConsole.cpp: keep uintptr_t cast for 64-bit
- JUTDbPrint.cpp: keep PC enter_() helper + add cstring include
- JUTResFont.cpp: take upstream loop/struct improvements with BE types
- JUTCacheFont.cpp: take upstream decomp fix
- float.h: use upstream !PLATFORM_GCN guard
- d_a_npc_bouS/theB.cpp: keep MULTI_CHAR() for PC portability
- d_a_npc_henna.cpp: keep uintptr_t + use upstream var name
- d_demo.cpp: keep near_/far_ field renames for PC
- d_resorce.cpp: keep uintptr_t + fix var name to res
- d_s_room.cpp, m_Do_graphic.cpp: keep dusk includes + add cstring
- m_Do_main.cpp: keep JHIComPortManager + use JAS_GLOBAL_INSTANCE_INIT
- angle_utils.h: remove redundant types.h include
2026-02-28 13:33:16 -07:00
Luke Street
29c96f5c65
Some GCC compilation fixes ( #3114 )
...
* Fix 6-byte multichar literals
* Add `struct` to `e_ga_class::ga_s`
* Fix remaining wrong forward declares (struct/class)
* Replace `#include <string>` with `#include <cstring>`
* Guard FLT_EPSILON define to prevent redefinition
* Add missing `#include <cstring>` for direct cstring function usage
2026-02-28 12:11:00 -08:00
roeming
81d679d207
Fix errors for msvc
...
Use less strict compiler flags instead of modifying source code
Add ugly defines so MSVC stops complaining about zero length arrays
2026-02-01 15:37:26 -08:00
LagoLunatic
e8c70fb18f
Clean up code, remove fakematches, add UNUSED, enable warnings ( #2992 )
...
* Remove NDEBUG_DEFINED fakematch, clean up getName temps
* Fix ifdef
* Fix bad JSystem pch ifdef breaking decomp.me
* Remove Acch Chk fakematches
* Private Acch fields
* Fix some clangd errors in headers
* Add UNUSED macro for matching debug parameters
* Enable clangd unused-parameter warning
* Remove extern from initializers
Probably added by dol2asm?
* Fix process profile definitions
* Remove leftover dol2asm address comments
* Remove some unnecessary double casts
* Enable some more clangd warnings
* Fix missing usages of fopAcM_ct
* Fix wrong enum usage
* Fix more fakematches
2025-12-23 15:53:10 -08:00
TakaRikka
dfa8efa97b
project cleanup ( #2895 )
...
* some wii OS fixes
* remove old dol2asm comments
* remove dol2asm.h
* remove function address comments
* normalize ATTRIBUTE_ALIGN usage
* DECL_WEAK macro
* fix gcc attribute weak macro
* wrap more mwcc specific things in ifdefs
* fixes
* fix revo sdk version flags
* fixes
2025-11-30 15:23:42 -07:00
Max Roncace
cd45b27fe9
d_a_npc_chin matching ( #2822 )
2025-11-18 21:10:04 -08:00
LagoLunatic
6ec6fce8cb
Fix JUT_ASSERT and several other macros ( #2711 )
...
* Fix JUT_ASSERT to be a nested define
* Switch names that appear in asserts to be constants instead of defines
* Replace `0` in asserts with `NULL` or `FALSE`
* Fix fpclassify
* Fix ARRAY_SIZE
* Use G_CM3D_F_INF
* More fixes for fpclassify
* Remove FLOAT_LABEL
* Remove incorrect FLAG_ON macro
* Remove UNK_BSS macro
* Silence clangd unused header warning for PCH
2025-09-28 13:11:07 -07:00
Max Roncace
783b0d9dfe
Link all oustanding US-matched TUs for JP ( #2671 )
2025-09-19 21:32:05 +03:00
Max Roncace
c897597fc1
Add a precompiled header for RELs ( #2597 )
2025-08-24 09:52:08 +03:00
LagoLunatic
0ff06d2974
Debug version now builds OK and all_source compiles ( #2343 )
...
* Fix missing arg to JUT_ASSERT
* Fix some MWCC version diff errors
* Compile m_Do_ext, d_demo, actor_mng
* Add VSCode task to quickly switch between versions
* Unlink magLift for debug
* Update the hash of the debug dol
The old cbea5fa... hash here was for the dol generated by the alf2dol.py script, which produces incorrect alignment.
The dol with the new hash can be obtained by using `dtk elf2dol` to convert the debug .alf file to a dol.
The DOL now builds OK.
* Fix all debug REL dtor splits
All RELs now also build OK, meaning `ninja build/ShieldD/ok` now succeeds.
* Add genMessage declarations to all HIO subclasses
* Fixing more compilation errors
* m_Do_mtx 100% on debug
Cannot be linked due to weak function name mangling?
* Improve various matches
* Fix all remaining compilation errors
* Fix new compilation errors from main
* Fix retail regression
* Link f_pc_profile_lst
2025-03-22 18:00:51 -07:00
TakaRikka
178194ccb2
switch to dtk setup ( #2203 )
...
* switch to dtk setup
* some cleanup / fixes
* cleanup d_a_alink literals
* Restore doxygen, update CI & README.md (#1 )
* Fix build image ref (#2 )
---------
Co-authored-by: Luke Street <luke@street.dev >
2024-10-10 08:29:58 -06:00
Pheenoh
7154ac08e1
d_a_e_fz work, doxygen revamp ( #2127 )
...
* initial freezard actor struct + setActionMode OK
* daE_FZ_Draw
* setReflectAngle
* mBoundSoundset
* daE_FZ_Execute & execute
* demoDelete
* daE_FZ_Delete & _delete
* CreateHeap
* useHeapInit
* cc_set
* mtx_set
* action WIP
* way_gake_check
* executeRollMove
* executeMove
* draw WIP
* executeDamage
* checkpoint
* create
* checkpoint
* daE_FZ_c::executeWait
* checkpoint
* daE_FZ_c::damage_check almost done
* rm asm
* rm headers
* setup_profile WIP + doxygen update
* fix merge issues
* docs fix?
* fix2
* doxygen updates
* setup g_profile_E_FZ, profile setup script WIP
* update github actions
* update progress.md
2024-04-12 00:10:30 -06:00
TakaRikka
907774de02
remove "duplicated" inlines ( #2099 )
...
* fix f_op_actor_mng inlines
* fix f_pc inlines
* fix d_a_alink weak func signatures
* fix d_com_inf_game inlines
* fix some more inlines
* fix rest of player inlines
* m_Do / JSystem inlines fixed
* fix upstream changes
2024-03-19 13:31:53 +02:00
TakaRikka
5f1a002cf4
d_a_shop_item, d_a_b_go, d_a_b_gos OK ( #2085 )
...
* d_a_shop_item OK
* d_a_b_go OK
* d_a_b_gos OK
* remove asm
* some work on d_a_b_oh / d_a_b_zant_sima
* d_a_startAndGoal done
2024-03-07 20:23:18 -07:00
TakaRikka
8b4808da8a
almost all of dolphin matched ( #2036 )
...
* TRK full match
* remove trk asm
* ar done
* cleanup some dolphin headers
* more dolphin cleanup
* cleanup / GD fully matched
* almost all of GX fully matched
* GX / Mtx full matched
* most of OS done
* pad done
* most of VI
* remove asm
* forgot couple vec funcs
* couple JUtility matches
2024-01-20 02:22:19 +02:00
TakaRikka
2e9a945b7c
d_timer / d_bright_check done ( #2034 )
...
* d_bright_check mostly fixed
* d_timer done
* remove asm
2024-01-17 13:04:43 +02:00
Pheenoh
f9380b3e05
d_a_obj_carry work, SETUP_ACTOR macro, header cleanup ( #1885 )
...
* d_a_obj_carry work, SETUP_ACTOR macro
* rm headers, add script
* progress
* macro rename, consistent spacing
2023-08-16 12:07:52 -07:00
Jcw87
4346df764b
Remove #includes from headers ( #334 )
...
* add "global.h" to files that use it
* add MSL_C includes to files that use them
* remove dolphin includes from headers that don't need them
* remove JSupport includes from headers that don't need them
* remove JKernel includes from headers that don't need them
* remove JUtility includes from headers that don't need them
* remove J3D includes from headers that don't need them
* remove J2D includes from headers that don't need them
* remove JAudio2 includes from headers that don't need them
* remove Z2AudioLib includes from headers that don't need them
* remove JMessage includes from headers that don't need them
* remove JParticle includes from headers that don't need them
* remove SComponent includes from headers that don't need them
* remove dol includes from headers that don't need them
* sort includes
2023-05-12 12:10:14 -07:00
Jcw87
026e120e39
improve const correctness ( #325 )
2023-04-29 17:32:56 -07:00
TakaRikka
86bfbda871
d_a_kytag06 fully done / d_msg_class/object work ( #300 )
...
* d_a_kytag06 OK and d_msg_class/object wip
* add some GXDraw functions
* cleanup kytag6
* remove asm
2023-02-25 18:23:13 -08:00
TakaRikka
094179c5a0
d_door_param2 / d_cam_param / d_gameover + some misc cleanup
2023-01-27 15:12:42 -08:00
Pheenoh
020a4a5310
rm types
2022-12-22 16:12:32 -07:00
Pheenoh
6b05cf6a3b
dDlst_TimerScrnDraw_c::getNumber
2022-12-22 16:02:42 -07:00
Pheenoh
224ed70d66
dDlst_TimerScrnDraw_c::getNumber
2022-12-22 15:52:44 -07:00
Pheenoh
dde4e741d7
dTimer_c::end
2022-12-22 15:27:33 -07:00
Pheenoh
21e1ec1109
dTimer_c::restart
2022-12-22 14:36:27 -07:00
Pheenoh
27bb534a9e
dTime_c::stock_start attempt again
2022-12-22 13:49:29 -07:00
Pheenoh
2f5c5f0de6
dTimer_c::_draw
2022-12-22 13:32:41 -07:00
Pheenoh
1a7f4b9fea
dTimer_isReadyFlag
2022-12-22 13:10:09 -07:00
Pheenoh
21397ecabc
dTimer_show and dTimer_hide
2022-12-22 13:07:26 -07:00
Pheenoh
9c91cdee04
dTimer_getRestTimeMs
2022-12-22 13:03:11 -07:00
Pheenoh
4029786c80
dTimer_isStart
2022-12-22 13:02:32 -07:00
Pheenoh
7165b79090
dTimer_createStart2D
2022-12-22 12:58:10 -07:00
Pheenoh
5ad821abe1
dTimer_createGetIn2D
2022-12-22 12:31:19 -07:00
Pheenoh
b7c1d5035f
dTimer_createStockTimer
2022-12-22 10:36:47 -07:00
Pheenoh
0c2e693e93
dTimer_Create
2022-12-22 08:10:03 -07:00
Pheenoh
7141515882
dTimer_Draw
2022-12-22 08:06:17 -07:00
Pheenoh
a086037539
dTimer_c::isStart
2022-12-22 01:25:35 -07:00
Pheenoh
92248e39ee
dTimer_c::getTimeMs
2022-12-22 00:57:43 -07:00
Pheenoh
2cc9714366
dTimer_c::getLimitTimeMs
2022-12-22 00:46:31 -07:00
Pheenoh
f2ffd6e593
dTimer_c::deleteRequest
2022-12-22 00:37:31 -07:00
Pheenoh
e31ea34fad
dTimer_c::stop
2022-12-22 00:36:10 -07:00
Pheenoh
3d7c75bca3
dTimer_c::stock_start (no param) attempt
2022-12-22 00:30:04 -07:00
Pheenoh
0baf9e9a5d
dTimer_c::stock_start
2022-12-22 00:03:31 -07:00
Pheenoh
0ef0e91aae
dTimer_c::deleteCheck
2022-12-21 23:57:09 -07:00
TakaRikka
a4b74049a0
npcT / JUTGamePad work
2022-05-28 03:49:55 -07:00
TakaRikka
92864cb8b8
d_model / d_simple_model / d_stage + cleanup ( #181 )
...
* d_model / d_simple_model / cleanup
* d_stage work
* set up saveHIO / remove asm
* d_a_itembase
2022-02-19 14:22:47 +01:00
Julgodis
5d12345a03
moved strings + decompile simple store functions
2021-04-10 07:02:38 +02:00
Julgodis
9bc8bce611
auto decompile more functions
2021-04-08 21:05:48 +02:00
Julgodis
cad608c551
demangle data-symbols
2021-04-08 01:47:05 +02:00