Commit Graph

36 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
bf479c7e3f Match ChannelTitle unit (#182) 2026-09-22 03:22:51 -05:00
coah
513eb4dca2 Improve ChannelTitle matching
Match additional ChannelTitle functions.
2026-09-21 15:23:21 -05:00
coah
fa405951c1 Match Hermite interpolation constructor 2026-09-20 13:29:19 +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
koopthekoopa
18213a8f5d Equivalent match iplChannelTitle.cpp 2026-07-22 19:41:35 +01:00
Essem
689d7b75c5 Add operator= to VEC2 and correct set typo 2026-07-17 18:58:44 -05:00
koopthekoopa
25f93e26dc More progress on iplUtility.cpp 2026-07-10 11:20:55 +01:00
Tim Schneeberger
406a4a22e0 Fix abs name shadowing 2026-07-09 19:32:30 +02:00
Tim Schneeberger
ce4ea3e41e Force HermiteIntp<T>::HermiteIntp() definition (needed by iplUtility->Scroller::Scroller()) 2026-07-09 19:32:30 +02:00
CreateSource
5b80e70fca remove unnecessary includes 2026-07-03 15:24:48 -04:00
CreateSource
4aa1c61205 enough for a PR 2026-07-03 15:23:54 -04:00
CreateSource
afbd194bb8 progress ig 2026-07-03 14:00:39 -04:00
CreateSource
635efd63d0 match 30% of ipl::controller 2026-07-03 14:00:39 -04:00
Skyler Calaman
9f5cad87a1 Improvements to LinearIntp.get (not matched, but closer) 2026-06-27 04:12:21 -04:00
koopthekoopa
926fce7450 Equilavent match iplChannelSelect.cpp 2026-06-19 16:33:07 +01:00
koopthekoopa
2c1b4f5361 Improve matching for some CHANSVm functions 2026-04-11 20:26:35 +01:00
koopthekoopa
6120c26000 Equilavent match iplChannelObj.cpp 2026-03-17 19:59:55 +00:00
koopthekoopa
5c86eaecdd Start progress on software keyboard 2026-03-12 23:34:48 +00:00
koopthekoopa
3ba3a93a27 Equilavent match scene/board 2026-01-22 16:39:57 +00:00
koopthekoopa
3ab6ceb059 little cleanup 2025-11-20 10:59:07 +00:00
koopthekoopa
add4ce21ac Match iplDate.cpp 2025-09-07 19:51:06 +01:00
koopthekoopa
e0cf498eac Equilavent match iplSystem.cpp 2025-08-07 16:56:56 +01:00
koopthekoopa
bb63cf6124 Match iplCdbBackup.cpp 2025-08-05 15:45:44 +01:00
koopthekoopa
73bc844b72 Progress on NWC24 2025-07-29 18:28:18 +01:00
koopthekoopa
6fcc02fc53 Match GX and MTX 2025-05-03 12:17:40 +01:00
koopthekoopa
8788079ad1 Match iplButton 2025-04-13 13:11:26 +01:00
koopthekoopa
de086be635 Progress on iplSDMenuButton.cpp 2025-04-09 23:02:27 +01:00
koopthekoopa
d32ce76ad5 Match OS and EXI 2025-04-07 01:01:59 +01:00
koopthekoopa
6a6bd8b0dd Work on iplSaveManager 2025-02-19 11:28:59 +00:00
koopthekoopa
eace114d30 Decompile and Link Gui Manager 2025-01-09 22:52:03 +00:00
koopthekoopa
2dfaae944e Decompile and link iplFramework.cpp and FrameControllers 2025-01-04 23:45:45 +00:00
koopthekoopa
0393d0aa94 Decompile and link iplLayout.cpp 2025-01-04 12:21:17 +00:00
koopthekoopa
65825c287b Move to dtk-template 2025-01-03 13:06:52 +00:00
koopthekoopa
2954c7c483 Splits for 4.3E, 4.3J and 4.3K 2024-12-02 23:08:29 +00:00
koopthekoopa
5766e10eeb Port symbols for 4.3E, J and K 2024-11-10 13:57:58 +00:00