Commit Graph

158 Commits

Author SHA1 Message Date
coah
a824e02a30 fix: restore 43U DOL hash on main (#213)
* fix: restore MSL extab flags and force-active stripped symbols

* fix: limit ChannelTitle novtable header changes to IPL_CHANNEL_TITLE_NOVTABLE

PR #182 made gui::EventHandler novtable and rewrote HermiteIntp for every
unit, which dropped __vt__Q23gui12EventHandler from linked scene units and
moved EventHandler::onEvent. Restore the pre-#182 definitions unless the
macro is defined.

* fix: restore u16 addrType in cdb::Manager::createNewRecord

The original symbol takes u16 (mangled UsUs); the enum parameter made
createNewRecord 4 bytes longer. Match the caller in iplNwc24Manager with a
u16 local assigned through if/else.

* fix: emit TVRC loop handlers after TVRCSendStartAsync

The original object places both alarm handlers at the end of .text.

* fix: construct scene::Date::mscMaxDate with utility::Date

The MaxDate wrapper emitted a weak MaxDate ctor that the original does
not have, shifting .text by 0x10 after iplDate. Go back to a plain
utility::Date followed by the 0x10-byte padding array.

* fix: define textinput PaneComponent dtor after PaneManager dtor

Matches the original object's function order, which also pulls the weak
GUIComponent dtor into place.

* fix: define EGG audio Arg and SoundHeapMgr ctors out of line

Emits IAudioMgr::Arg::Arg first and SoundHeapMgr's weak dtor ahead of its
ctor, matching the original eggAudioMgr function order.

* fix: define WaveFile dtors in AudioWavePlayer after the ctor

The original emits WavePacket's weak dtor first, then the WaveFileAiff and
WaveFileWav dtors. Declaring the dtors after getBit keeps the vtables in
AudioWaveUtility.

* fix: restore fork-point iplCSMtx string pooling

Moving "MTX34" into a static const array put it in .sdata2 and left the
pooled .sdata copy to be dead-stripped, shifting both sections.

* fix: share tiGUIManager's named 0.0f constant

drawLine_ and PaneComponent::contain now load lbl_81694EE8, as in the
original, instead of emitting their own 0.0f ahead of it in .sdata2.

* fix: force-active unreferenced iplDate and WDScan data

MWLD dead-strips scene::padding (the 0x10 bytes after Date::mscMaxDate)
and the unreferenced WDScan .sdata2 bytes lbl_81695063/lbl_81695067,
which shifted .bss and .sdata2.

* fix: unlink eggAudioExpMgr

MWCC emits the @52 calc thunk ahead of the @52 dtor thunk, but the
original has them the other way round, which swaps two vtable entries.
Link the original object until the order is matched.

* fix: shrink Calendar .data padding now that EventHandler has a vtable

With gui::EventHandler no longer novtable, its 0x18-byte vtable fills most
of the gap after __vt__Q33ipl5scene8Calendar; keep one 4-byte pad.
2026-09-27 23:26:31 -05:00
coah
2b016f9144 Match iplNwc24Manager 2026-09-22 04:31:50 +00:00
coah
cccb435398 Fix controller rumble default 2026-09-20 17:36:16 +00:00
coah
bb9007a379 Match save data title migration 2026-09-20 14:41:40 +00:00
coah
380b3afe96 Match revolution controller constructor 2026-09-20 14:18:50 +00:00
coah
9560a26349 Match controller master invalidation 2026-09-20 14:17:58 +00:00
coah
e8eb752bc9 Match controller master decide 2026-09-20 14:17:29 +00:00
coah
21354e8095 Match revolution controller triggers 2026-09-20 14:16:51 +00:00
coah
ba9d2f8547 Match classic controller triggers 2026-09-20 14:16:20 +00:00
coah
f91c2aa1ab Match classic controller down 2026-09-20 14:15:49 +00:00
coah
10527d7457 Match revolution repeat helper 2026-09-20 14:14:14 +00:00
coah
e0c1ed552b Match revolution pinch helpers 2026-09-20 14:13:55 +00:00
coah
181a66a81b Match revolution position accessors 2026-09-20 14:12:18 +00:00
coah
215ddd3195 Match controller stick accessors 2026-09-20 14:09:01 +00:00
coah
b7bd6ce519 Match controller main stick accessor 2026-09-20 14:08:41 +00:00
coah
3e8e1567b2 Match controller master helpers 2026-09-20 13:58:08 +00:00
coah
aafb419bd1 Match controller free 2026-09-20 13:50:09 +00:00
coah
4cf0436c1a Match controller allocator 2026-09-20 13:43:51 +00:00
coah
36a2835fa2 Match controller rumble 2026-09-20 13:36:35 +00:00
coah
81ed31027c Match controller horizon 2026-09-20 13:36:14 +00:00
coah
067c45de77 Match controller DPD projection 2026-09-20 13:36:04 +00:00
coah
49f5555ede Match controller DPD position 2026-09-20 13:35:51 +00:00
coah
f7107e23bb Match controller DPD validity 2026-09-20 13:35:39 +00:00
coah
e83b5bf2bc Match controller pinch release 2026-09-20 13:29:03 +00:00
coah
379008eb53 Match controller pinch trigger 2026-09-20 13:28:51 +00:00
coah
44c95c2f5c Match controller repeat accessor 2026-09-20 13:21:54 +00:00
coah
3b1a718a85 Match controller interface read 2026-09-20 13:19:24 +00:00
coah
c0e6edd6d4 Match controller release trigger 2026-09-20 12:46:53 +00:00
coah
dbaa9286f3 Match controller type wrapper 2026-09-20 12:45:13 +00:00
coah
8741e22b89 Match controller channel wrapper 2026-09-20 12:33:58 +00:00
coah
91203b261d Match Revolution button flags 2026-09-20 12:12:10 +00:00
coah
fb7316232a Match Revolution KPAD getter 2026-09-20 12:02:33 +00:00
coah
58b285637f Match Revolution DPD distance 2026-09-20 11:55:42 +00:00
coah
a3631e8073 Match controller DPD distance 2026-09-20 11:46:05 +00:00
coah
9c4d7ec939 Match controller cancel rumbling 2026-09-20 11:24:00 +00:00
coah
76e95d75b3 Match controller pad status 2026-09-20 11:18:36 +00:00
coah
e905430c75 Match controller release flag 2026-09-20 11:13:09 +00:00
coah
c9fe195d72 Match controller trigger flag 2026-09-20 11:06:46 +00:00
coah
04e723a4dc Match controller hold flag 2026-09-20 11:02:51 +00:00
coah
f8d83e5ff2 Fork for AI-assisted matching work
Personal fork so AI-assisted decomp work has a home without disturbing
upstream. README explains the fork; AGENTS.md documents the method and
forbids ever opening a PR against koopthekoopa/wii-ipl.

Matching progress: +9 exact functions, 0 regressions, main.dol still
byte-identical (26116613f624061ba99c8d1a299aaa6efa85670d).

iplESMisc gains CheckTmdParentalControl, CheckSafeDeleteTitle,
NumPrivateContents, checkContentsNum and GetValidTicketIndex, plus the
other functions matched in the previous pass.

The load-bearing finding, written up in AGENTS.md: MWCC emits a
translation unit's string literals in source-token order. A missing
function, or an inverted if/else, shifts every later string offset and
breaks functions that were never edited. Fixing that pool ordering lifted
TMDFile::Open from 99.92 to 99.96 without touching Open.

Adds tools/decomp-assist/ with pool_diff.py, ctxdiff.py, disasm_fn.py,
export_pyghidra.py and the Ghidra decompilation dump.
2026-09-19 13:19:34 +00:00
Tim Schneeberger
664635b376 Match VmSystem & iplCS* 2026-08-11 16:11:52 +02:00
koopthekoopa
18213a8f5d Equivalent match iplChannelTitle.cpp 2026-07-22 19:41:35 +01:00
KoopTheKoopa
e671fe43cf Merge pull request #39 from TheEssem/initial-matches
A few controller/TVRC matches
2026-07-19 14:51:23 +01:00
Essem
6f7f74859e Some smaller iplController func matches 2026-07-17 18:37:07 -05:00
Skyler Calaman
a8df98f25a iplNandSDWorker_AutoTest Matching, split string blocks in iplKitayamaTest 2026-07-11 14:54:02 -04:00
koopthekoopa
25f93e26dc More progress on iplUtility.cpp 2026-07-10 11:20:55 +01:00
Tim Schneeberger
c3797fbf7c Add & match undefined reset function 2026-07-09 19:32:29 +02:00
Tim Schneeberger
b1d0891dee Add incomplete BScroller, CharacterCode, and other iplUtility implementations 2026-07-09 19:32:28 +02:00
koopthekoopa
4917e4e680 Update CONTRIBUTING.md 2026-07-09 17:47:55 +01:00
koopthekoopa
ff68d54ab3 clean up 2026-07-08 16:37:32 +01:00