Commit Graph

178 Commits

Author SHA1 Message Date
coah
8e96e8a722 match(SaveDataManager): decompile getNumValidChannel (#622)
Exact match (23/23, diffs 0). DOL SHA1 26116613f624061ba99c8d1a299aaa6efa85670d.

Adds ChannelSlot/ChannelPage overlays (slots at +0x30, page stride 0xC0)
so the loop uses typed .valid/.titleId instead of raw byte loads.
2026-10-01 18:22:58 -05:00
coah
c836ab8bae cleanup(iplChannelManager): name title lookup and meta helpers (#520)
Rename Matching-only fn_8133A* APIs and update SD call sites plus
mangled symbols.txt entries.
2026-10-01 17:30:44 -05:00
coah
24c84f5bfc cleanup: rename NandSDWorker SD app title check helpers (#496)
Rename iplNandSD_81348EA8/do_unk_8134C838 to
check_sd_app_titles_async/do_check_sd_app_titles. DOL sha1 unchanged.
2026-10-01 17:17:04 -05:00
coah
d434f5b897 cleanup: rename CdbBackup progress percent helper (#494)
Rename fn_8135B1C0 to getProgressPercent. DOL sha1 unchanged.
2026-10-01 17:00:18 -05:00
coah
cedc1f1390 cleanup: rename SaveDataManager title-cache helpers (#488)
Rename address-suffixed title-cache helpers to readable names without
changing codegen. DOL sha1 unchanged.
2026-10-01 16:54:01 -05:00
coah
5981234728 scene units: small fuzzy gains (worker 0eaf4057) (#392) 2026-09-30 12:13:13 -05:00
coah
bf90a97c1a iplSetting 104/112 (fuzzy 93 -> 98) (worker e82cba45) (#385) 2026-09-30 11:04:42 -05:00
coah
2058b121cc iplSetting 100/112, iplSDMemory 62/66 (worker dee954b8) (#369) 2026-09-30 06:57:39 -05:00
coah
fcb5be85f7 Decompile iplSDChannelTitle to 63/69 functions (gpt-6.1-sol low) (worker b1c15e3d) (#288) 2026-09-29 17:02:20 -05:00
coah
74f1719bfd iplSDChannelSelect: 89/129 functions (worker f62627b8) (#266) 2026-09-29 08:17:16 -05:00
coah
c21dcc3d31 iplSDMemory: 48/66 functions (#260)
* sdmemory: carry over worker delta (sd channel select header changes left out)

* add SDChannelSelect state/worker accessors used by iplSDMemory
2026-09-29 04:21:39 -05:00
coah
51f940c1ea Decompile iplSetting to 68/112 functions (#256)
* start decompiling setting scene

* match basic setting scene helpers

* match setting constructor and storage

* match setting lookup helpers

* match setting cleanup methods

* restore setting scene name tables

* match setting fadein state copy

* decompile setting screen transitions

* match setting video mode transition

* decompile setting normal update

* decompile setting fadeout

* match setting data initialization

* decompile setting input initialization

* decompile setting access point flow

* decompile setting network workflows

* match setting helper frames

* match setting update initialization

* match setting eula initialization

* match setting fadein readiness

* type setting helper allocations

* localize browser setting tables

* match setting controller flow

* match setting exit condition

* improve setting screen mode flow

* match setting normal state cases

* improve setting keyboard initialization

* match setting text input handling

* match setting ssid initialization

* match setting address initialization

* match setting proxy initialization

* match setting nickname save

* match setting security and ssid writes

* match setting proxy profile updates

* match setting mtu parsing

* match parental password results

* match parental security answer result

* match master key result order

* improve setting text validation

* implement setting reverse ip conversion

* type setting text buffer as wide characters

* match setting default back string

* improve setting safe mode match

* match setting access point reset

* match setting access point redraw

* match setting access point events

* match setting left event

* improve setting creation and AP traversal
2026-09-29 01:28:56 -05:00
coah
313e396989 sdmemory: continue decompilation (worker snapshot d94f5e95) (#254) 2026-09-28 23:57:13 -05:00
coah
9347e0b1c3 Decompile iplSDMemory to 22/66 functions (#249)
* decompile SD memory setup helpers

* match SD memory arrow helpers

* match sd memory setup helpers

* decompile sd memory dialog reset

* order sd memory text pane updates

* match sd memory calculation

* decompile sd memory dialog states
2026-09-28 22:53:23 -05:00
coah
341ce036f5 Decompile iplSDChannelSelect to 42/129 functions (#248)
* start sd channel select decompilation

* add sd channel layouts and drawing

* match sd worker state helpers

* match nand title count handling

* name sd channel scene helpers

* match sd worker completion handlers

* match channel visibility lookup

* match channel queue helpers

* fix sd command notice payloads

* align sd worker state dispatch

* match sd channel object destruction

* match visible channel drawing passes

* match sd channel layout updates

* match sd channel pane helpers

* match page animation calculation
2026-09-28 22:53:07 -05:00
coah
094cfd811e Link iplController and iplControllerManager (#242)
* link iplController translation unit

* match controller manager read flow

* link iplControllerManager translation unit
2026-09-28 18:56:01 -05:00
coah
c98c2010b2 Split iplController into its two real units and decompile its asm (#241)
* decompile controller asm bodies

* model controller inheritance

* decompile controller leaf destructors

* split iplController into controller and manager units, decompile the asm

* fix controller manager readability
2026-09-28 18:24:09 -05:00
coah
17a33b2d18 Decompile iplAddressEdit to 72/94 functions (#240)
* wip: salvaged iplAddressEdit (old luna, contains hacks to remove)

* decompile address edit

* convert address edit methods
2026-09-28 18:11:06 -05:00
coah
a255b91806 Link iplSaveDataManager, decompile 3 of its asm functions (#237)
* decompile savedata title list integration

* decompile savedata title cache lookup

* decompile savedata prior title update

* link savedata manager in object order
2026-09-28 16:53:03 -05:00
coah
287f88ae75 Decompile iplAddress to 86/101 functions, drop its inline asm (#233)
* wip: salvage uncommitted luna worktree state

* continue address scene decompilation

* match address page advance

* match address page rewind

* match address friend cache types

* match address error message codegen
2026-09-28 14:56:13 -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
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