Luke Street
acdf6ad70f
Some u32/s32 -> uintptr_t/intptr_t
2026-02-28 20:34:06 -07:00
Luke Street
b807bedd35
More -Wpointer-arith fixes
2026-02-28 20:34:06 -07:00
Luke Street
0631cfe894
Fix all -Wconversion-null warnings
2026-02-28 15:59:24 -07:00
Luke Street
b7961b7739
Fix compilation errors after decomp/main merge
...
- Fix <string> -> <cstring> across all source files (upstream fix)
- Add <cstring> to JASGadget.h, <cstdarg> to JUTDbPrint.cpp
- Fix <string> -> <cstring> in JUTFont.h, d_save.h, f_ap_game.h
- Fix std::isnan usage in c_cc_d.cpp
- Fix cCcD_Src types: s32 -> u32 for bitmask fields (upstream fix)
- Fix AT_TYPE_WOLF_ATTACK/AT_TYPE_UNK unsigned literals (upstream fix)
- Remove (s32) casts on hex literals in collision data (upstream fix)
- Fix 0xFFFFFFFF literal in d_a_obj_wood_statue.cpp (upstream fix)
- Add braces to case 0 in d_a_e_gb.cpp to fix jump-over-init
- Fix Z2AudioCS.h include path (Z2AudioLib -> Z2AudioCS)
- Forward-declare Z2AudioCS in stubs.cpp to avoid revolution conflicts
- Guard JASGlobalInstance specializations with __MWERKS__ in m_Do_main
- Remove duplicate inline functions from d_com_inf_game.h
- Mark dummy() functions as static (upstream fix)
- Add JAUSectionHeap.h include to m_Do_main.cpp
2026-02-28 14:29:46 -07:00
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
Jeffrey Crowell
91c940bc1e
fix more compile errors with clang
2026-02-26 23:03:55 -08:00
PJB3005
cf5ce234b6
Make the rest of JSystem compiled in DEBUG
2026-02-25 21:31:13 +01:00
PJB3005
3e0023961f
Windows build fixes
...
Name mangling/linkage shenanigans
Remove jsystem_stubs.cpp, it's not necessary.
2026-02-25 20:43:43 +01:00
Jeffrey Crowell
9af9240253
builds on mac again
...
revert some useless ifdefs
rm TARGET_PC in the wrong place
remove stubbed version of functions
2026-02-25 11:09:19 -08:00
Max Roncace
d939dcd474
Implement Z2AudioCS ( #3103 )
2026-02-20 02:53:27 -08:00
Jcw87
7a22a1c320
fix compiler warnings ( #3094 )
2026-02-11 00:14:18 -08:00
Lurs
292724920c
Merge branch 'wip/linkfix2' into wip/linkfix
2026-02-11 07:20:44 +01: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
Max Roncace
cff0e8ee74
Add missing TUs for Wii/Shield retail (+ filename cleanup) ( #3072 )
...
* Fix GCN_mem_alloc.c filename capitalization
* Fix up TRK file names in Wii/Shield splits
* Add string_TRK
* Add cc_gdev
* Add Shield-only wstring TUs
* Implement NdevExi2A
* Add missing JSystem TUs (more are still missing from ShieldD)
* Clean up includes
2026-01-29 14:18:08 -08:00
kipcode66
d82453292a
Merge remote-tracking branch 'decomp/main' into compile
2026-01-26 18:11:18 -05:00
TakaRikka
c9e2a73dda
general cleanup, d_menu_quit / d_a_obj_testcube mostly done, d_msg_scrn_explain debug ( #3065 )
...
* typedef for cPhs_Step
* make sdk includes consistent
* d_menu_quit / d_msg_scrn_explain debug
* d_a_obj_testcube mostly done
* d_debug_pad mostly done
* jstudio tool library headers
* some JStudioCameraEditor headers
* d_jcam_editor mostly done
* try fixing some shield regressions
* d_bg_parts mostly done
* fix merge errors
* debug fix
2026-01-24 23:36:23 -08:00
kipcode66
b1e20051ce
get dusk past compilation and into linking
2026-01-15 19:24:39 -05:00
kipcode66
9b7e55965f
standard compiler compatibility changes ( #3040 )
...
* move math to cmath
* replace stdarg to cstdarg
* change stdint to stdint.h
* minor fixes
* change stdio to cstdio
* change stdlib to stdlib
* renamed ctype to cctype
* fix missing argument for UNSET_FLAG
2026-01-13 00:48:25 +02:00
Max Roncace
919a7aaa96
Fix errors when building with -ipa program ( #3035 )
2026-01-11 19:25:26 -08:00
Max Roncace
b6e14dd4c8
Misc debug include/class order improvements + link remaining Z2AudioLib TUs ( #3014 )
...
* Improve dolzel.pch ordering
* Improve JSystem include order
* Various class ordering fixes
* Link remaining Z2AudioLib TUs
* Fix some symbols in Shield and weak functions in ShieldD
2026-01-06 04:38:40 -08:00
Jcw87
378e6ecf72
fix functions not returning values ( #3018 )
2026-01-05 03:55:35 -08:00
kipcode66
ea53712c30
Add guards around std library headers ( #3013 )
...
* Last fix for standard compiler error
* adding define guards around headers
* rename cmath.h and climits.h to cmath and climits respectively
* renaming cstdarg.h to cstdarg
* renaming cstdlib.h to cstdlib
* renaming cstring.h to cstring
* renaming cstdio.h to cstdio
* renaming cmath locale ctype
* renaming stdarg string and va_list
* renaming cstddef
* renaming stdio stddef stdlib
* renaming algorithm, functional, iterator, memory, and utility
* renaming bitset, cstdint, limits, and stdint
* renaming new and type_traits
* update quote includes for standard library headers to angle bracket includes
2026-01-05 03:50:45 -08:00
Jcw87
5fcfa49f3b
JAudio2 debug ( #3006 )
2025-12-27 15:23:15 -07:00
LagoLunatic
d63835d5c6
Fix optimization flag for Shield ( #3004 )
...
* Fix optimization flag for Shield
* Minor debug work
* Fix NULL asserts
2025-12-26 16:20:21 -08:00
Jcw87
a325d40e35
JAudio2 debug ( #2996 )
2025-12-26 13:20:53 -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
Jcw87
889dc157ab
JAudio2 debug ( #2990 )
2025-12-23 10:23:09 -08:00
TakaRikka
46d53ab65f
MSL_C header cleanup ( #2988 )
...
* msl_c header cleanup
* math header cleanup
* fix rest of shieldD configs
* cleanup cflag configs a bit
* fix shield build
2025-12-23 10:20:32 -08:00
Max Roncace
cd1e12a8f4
GCN data 100% matching ( #2987 )
...
* Update GZ2J01 symbols from linked DOL
* GCN data 100% matching
* Run dtk apply
2025-12-22 15:41:19 -08:00
Jcw87
758f83dda5
JAHostIO, JAWExtSystem debug ( #2985 )
2025-12-22 12:27:31 -08:00
kipcode66
9ac6dd0044
next round of standard compiler fixes ( #2969 )
...
* next round of standard compiler fixes
* Fix weak function order issue
* fix missmatch with ShieldD version
2025-12-21 17:48:09 -08:00
LagoLunatic
4e7c478259
Work on weak order ( #2979 )
...
* JAUSectionHeap OK
* Slightly improve d_camera weak func order (12 -> 10)
* Minor d_a_alink fixes
* weak_order_diff.py: Change to take source file as cli argument instead of .o file
For cli autocompletion to work.
* Reorganize J3D structs (no change in weak order)
2025-12-21 14:13:21 +02:00
LagoLunatic
7f4456be78
JASAiCtrl OK ( #2967 )
2025-12-18 13:38:20 -08:00
roeming
3fd414beab
Use consistent s32/u32 ( #2964 )
...
* cleanup long usage
* fix regression
2025-12-18 13:31:44 -08:00
LagoLunatic
c67ef281a3
Fakematch JASTrack::TList::seqMain ( #2940 )
...
* Fakematch JASTrack::TList::seqMain
* Add debug ifdef
2025-12-10 21:54:25 +02:00
LagoLunatic
65cacf174c
JASAramStream OK ( #2937 )
2025-12-09 14:52:31 -07:00
LagoLunatic
239fedd80b
Match JASTaskThread::run ( #2934 )
2025-12-08 22:12:42 +02:00
LagoLunatic
644b4fb96f
JASBNKParser OK, Z2Audience OK ( #2929 )
2025-12-07 21:49:42 -08:00
LagoLunatic
ecb4b69c42
Match Z2SceneMgr::sceneBgmStart ( #2923 )
2025-12-06 21:09:16 -08:00
Max Roncace
cf492884ea
Various debug conditional compilation cleanup ( #2915 )
...
* Global: Define DEBUG as 0 if not already defined
* Clean up DEBUG-guarded code
2025-12-06 13:34:47 -08:00
LagoLunatic
b51274a3dd
Debug+retail matches and clean up some fakematches ( #2910 )
...
* Debug matches
* Match daAlink_c::procGrassWhistleWait
* Match JASAramStream::channelProc
* More debug matches
* Match JAUStreamStaticAramMgr_::deleteStreamAram and bitset inlines
* Fix some fakematches
* Fix gameinfo player info not being a struct
* Update bug comments
* Fix procids in alink
* d_a_scene_exit OK
2025-12-03 15:09:56 -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
LagoLunatic
ce448fa0be
JASHeapCtrl OK ( #2893 )
2025-11-29 21:30:50 -08:00
TakaRikka
011b4b33b2
various Z2Audio / JAudio debug cleanup ( #2876 )
...
* some JAudio work
* audio cleanup checkpoint
* checkpoint more audio cleanup
* fix symbols
* more z2 cleanup
* fix regression
* fix build
* some fixes
2025-11-27 21:19:33 -08:00
LagoLunatic
1420aa0d0d
Misc fixes ( #2860 )
...
* Misc matches
* Remove more old dol2asm stuff
* Remove dCcS::SetMass-related fakematches
No longer necessary with the PCH for some reason.
* Use attention types enum in more places
* Remove more dol2asm stuff
* Clean up matDL_dis.py
2025-11-25 18:32:34 +02:00
LagoLunatic
d161aec619
Misc matches ( #2845 )
...
* Misc debug matches
* Fix d_map weak function order
* Remove old nonmatching comments
* d_menu_dmap and JASAudioThread OK, fix weak func order and rodata alignment
* More misc matches
2025-11-21 15:52:16 -08:00
LagoLunatic
f171287913
Remove fake matches, fix false equivalencies, and other small matches ( #2837 )
...
* Debug matches and remove fake matches
* Fix false equivalencies, regallocs, and vtable orders
* Fix PAL splits
2025-11-20 21:17:51 -08:00
LagoLunatic
7a6795c978
Misc fixes ( #2830 )
...
* Replace DANPCF_C_HACK with a better fakematch
* d_a_obj_item OK
* Fix ninja diff
* Misc debug/nonmatching fixes
* Fix ninja diff for PAL
* Fix bad PAL split
2025-11-19 14:10:03 -08:00
hatal175
a8d792acf8
JSUOutputStream Matching for shield ( #2825 )
...
* JSUOutputStream Matching for shield
* Fix nonmatching in JAUSectionHeap
2025-11-19 10:17:26 -08:00