Commit Graph

180 Commits

Author SHA1 Message Date
coah
0792087bf1 Salvage CDBAttr, CDBSystem, nand_drv, iplGraphics and RFL_NANDAccess matches (#221)
* feat: match CDBAttr unit

Make CDBAttrGetDescOffset static and fold the IV generation into
CDBAttrInitIV with a function-local seed, then link the unit.

Salvaged from agent/hard0928/clibs.

* feat: match CDBSystem unit

Implement the database and record pool functions, give the CDB work
buffer pointer a real name (shared with CDBDatabase), size s_mutex as a
plain OSMutex, and link the unit.

Salvaged from agent/hard0928/clibs.

* feat: match VF develop nand_drv unit

Make the NAND write/seek/create/delete wrappers inline so they fold into
_CreatePrfFile, test the override callbacks directly, fix the order of
the retry and sleep globals, size l_nandFunc without the trailing
padding, and link the unit. _MountPrfFile stays the existing asm.

Salvaged from agent/hard0928/clibs and
agent/continue0923/libs_revoex_src_vf_develop_nand_drv.

* feat: match iplGraphics unit

Compute the ortho projection bounds in the original order, size
Graphics::mArg without the trailing .bss padding, and link the unit.

Salvaged from agent/continue0923/src_utility_iplgraphics (without its
struct padding member).

* feat: complete RFL_NANDAccess data

Inline the NAND command block helpers so they no longer leave extab
entries, bringing extabindex to 100%.

Salvaged from agent/continue0924/rfl-nandaccess-data.

* feat: add eZiText zkokeyp source

Decompile the Korean keypad candidate functions. The unit stays
NonMatching: Zi8_81483118 matches exactly and the rest differ only by
register allocation or larger control-flow differences.

Salvaged from agent/hard0928/clibs.
2026-09-28 00:00:39 -05:00
coah
d51e34beb2 Link iplLetterWriter as matching (#219)
Use string literals instead of hand-placed pool arrays so sendToPC addresses the pool base, emit calcFadeout before onEventDerived, and force-active the NigaoeEventObserver vtable that the original link keeps.
2026-09-27 23:47:34 -05:00
coah
5ffea56c30 feat: match tiToolBar unit (#218)
Fix the cancelStateFocusIn case label, declare the toolbar Sample class
with its inline constructors so the LayoutByNW4R thunks are emitted in
the original order, relabel the unit's data, and point the two
one-past-the-end csPaneToAnimation entries at csAninationFile+0x1DC.
2026-09-27 23:40:50 -05:00
coah
784a463f27 feat: match iplChanAppBase unit (#215)
Define AnmController before the gui classes in this unit so its weak
vtable is emitted last, name the unit's .data literals as
compiler-generated symbols, and link the unit.
2026-09-27 23:29:20 -05:00
coah
fadf50ce43 feat: match iplChanAppEdit unit (#214)
Rewrite LinearIntp<VEC3>::get so the add goes through a separate
temporary, name the unit's .data literals as compiler-generated
symbols so objdiff pairs them by value, and link the unit.
2026-09-27 23:28:15 -05:00
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
41f01f5012 Link www surface unit 2026-09-22 00:42:23 +00:00
Tim Schneeberger
bbffcc77c8 Fix .rodata symbol bounds 2026-08-13 00:21:45 +02:00
Tim Schneeberger
664635b376 Match VmSystem & iplCS* 2026-08-11 16:11:52 +02:00
Tim Schneeberger
853c1ea2a7 Merge branch 'main' into ipl-chansvm 2026-08-11 16:09:36 +02:00
koopthekoopa
42a49cba1f Equivalent match RsoSystem.cpp 2026-07-23 01:02:49 +01:00
koopthekoopa
18213a8f5d Equivalent match iplChannelTitle.cpp 2026-07-22 19:41:35 +01:00
Tim Schneeberger
95e8b35862 Merge branch 'main' into ipl-chansvm 2026-07-22 05:56:30 +02:00
Tim Schneeberger
952034f346 Cleanup 2026-07-22 05:55:18 +02:00
KoopTheKoopa
baf4b675da Merge pull request #37 from Blckbrry-Pi/kitayama-test-scene
Match iplNandSDWorker_AutoTest and symbol improvements on  iplKitayamaTest
2026-07-19 14:51:02 +01:00
Tim Schneeberger
8d3b709afa Improve logging macros & rename function to VmDateCommon based on log artifacts 2026-07-18 21:21:14 +02:00
Tim Schneeberger
55e91c695e Big cleanup 2026-07-18 05:30:53 +02:00
Tim Schneeberger
08c79e1008 Create method & property tables, match .sdata2 2026-07-17 21:28:40 +02:00
Tim Schneeberger
1bd35ec6b5 Match VmArray* functions 2026-07-17 02:49:52 +02:00
Skyler Calaman
021499686d Fix build issue for European version (how did .text splits get misaligned?) 2026-07-11 15:19:16 -04:00
Skyler Calaman
a8df98f25a iplNandSDWorker_AutoTest Matching, split string blocks in iplKitayamaTest 2026-07-11 14:54:02 -04:00
Skyler Calaman
fa2f2e7d5a Almost match AxAdpcmPlayer.cpp 2026-07-11 14:27:06 -04:00
Skyler Calaman
354ee6a837 AudioWaveUtility.cpp Matching, down to only ordering issue on AudioWavePlayer.cpp 2026-07-11 14:27:04 -04:00
Skyler Calaman
baa20258cd AxAdpcmPlayer.cpp Equivalent (1 fn left) 2026-07-11 14:27:03 -04:00
Skyler Calaman
a2dc28ce6a AudioWavePlayer.cpp Equivalent (There may be split issues) 2026-07-11 14:27:01 -04:00
koopthekoopa
25f93e26dc More progress on iplUtility.cpp 2026-07-10 11:20:55 +01:00
KoopTheKoopa
fd32a70022 Merge pull request #35 from timschneeb/ipl-jpeg-dec
iplJpegDecoder.cpp (100%) and TMC_JPEG library (partial)
2026-07-09 22:26:33 +01:00
Tim Schneeberger
f819bbbf98 Revert changes to symbols.txt 2026-07-09 22:38:19 +02:00
Tim Schneeberger
c3797fbf7c Add & match undefined reset function 2026-07-09 19:32:29 +02:00
Tim Schneeberger
7d91dc1ff9 Add missing local + improve match 2026-07-09 19:31:24 +02:00
Tim Schneeberger
8c47b7452b Match iplJpegDecoder.cpp (equivalent, 99%) 2026-07-09 19:31:23 +02:00
koopthekoopa
4917e4e680 Update CONTRIBUTING.md 2026-07-09 17:47:55 +01:00
koopthekoopa
cd912d9331 Equivalent match EGG 2026-07-09 15:48:38 +01:00
koopthekoopa
ff68d54ab3 clean up 2026-07-08 16:37:32 +01:00
koopthekoopa
c25b5043f5 rework RSO 2026-07-02 10:49:24 +01:00
koopthekoopa
8a4889c0d6 More progress on VF 2026-07-02 10:38:43 +01:00
koopthekoopa
13908b1198 Fix compile and link errors 2026-06-28 10:01:17 +01:00
KoopTheKoopa
af1e856d37 Merge pull request #31 from Blckbrry-Pi/Save-and-Channel-Edit
Scenes & classes for Editing Save & Channel Data (`channelEdit`, `memory`, and `saveDataEdit` scenes)
2026-06-27 17:28:47 +01:00
KoopTheKoopa
e552bdce32 Merge pull request #30 from Blckbrry-Pi/nakamuratest-scene
Match the NakamuraTest scene
2026-06-27 17:28:32 +01:00
KoopTheKoopa
01ea19ac77 Merge pull request #29 from Blckbrry-Pi/cleanup
Cleanup here and there
2026-06-27 17:28:15 +01:00
Skyler Calaman
4201524aba iplChannelEdit.cpp Matching, iplChanApp<Base, Box, Edit> Equivalent
- ChanAppBase is not matching because of vtable order
- ChanAppBox is not matching because an extra 0.0f in .sdata2
- ChanAppEdit is not matching because of LinearIntp's get
2026-06-27 04:12:20 -04:00
Skyler Calaman
419466f80e iplNandSDWorker.cpp Matching 2026-06-27 04:12:19 -04:00
Skyler Calaman
5ddc279955 iplNandSDCardManager.cpp matching 2026-06-27 04:12:18 -04:00
Skyler Calaman
3765289e49 iplThumbnail Matching 2026-06-27 04:12:17 -04:00
Skyler Calaman
523faaaf13 iplMemory.cpp Matching 2026-06-27 04:12:15 -04:00
Skyler Calaman
2a3c5ed109 Get iplSavedata<Base, Box, Edit> equivalent
There is a weird bit of padding in `.data`, most likely from deadstripped stuff.
2026-06-27 04:12:13 -04:00
Skyler Calaman
a523305242 iplNakamuraTest.cpp Matching 2026-06-27 04:10:03 -04:00
Skyler Calaman
9430061dd5 iplContest.c Matching 2026-06-27 04:10:02 -04:00
Skyler Calaman
c55e55c6f1 iplNetSetup.cpp Matching 2026-06-27 04:10:01 -04:00
Skyler Calaman
52e92b44bc Finish up iplNCDSetting.cpp 2026-06-27 04:08:35 -04:00