Commit Graph

1200 Commits

Author SHA1 Message Date
Devin AI
ec00ba7d96 chansvm: VmArraySlice mask-clamp idiom
Co-Authored-By: wch <usernamecole7@gmail.com>
2026-09-28 15:51:15 +00:00
Devin AI
1c3298f4e3 chansvm: CHANSVmStep - shared result-check for SET_INDEX, IS_CLASS polarity, expand-result check, BLANK case order, signed type cmp
Co-Authored-By: wch <usernamecole7@gmail.com>
2026-09-28 15:46:51 +00:00
Devin AI
9c8affc282 chansvm: VmBlobUnpack OR-form range check (still folds - shared tie-break)
Co-Authored-By: wch <usernamecole7@gmail.com>
2026-09-28 15:38:12 +00:00
Devin AI
7bc1ff5bb8 chansvm: VmBlobUnpack bufAreaBase placement + nested range check
Co-Authored-By: wch <usernamecole7@gmail.com>
2026-09-28 15:34:48 +00:00
Devin AI
46de7ab4b4 chansvm: VmCallMethod byte-load methodId + error return idiom; VmArraySlice ternary
Co-Authored-By: wch <usernamecole7@gmail.com>
2026-09-28 15:33:30 +00:00
Devin AI
5749d3e5c4 chansvm: match CHANSVm_81455654, VmStringSplit, VmArraySlice, CHANSVm_81450D14, VmBlobPackCommon, CHANSVmParseInt improvements
Co-Authored-By: wch <usernamecole7@gmail.com>
2026-09-28 15:23:22 +00:00
coah
b1fd404137 Improve iplBoard and iplChannelSelect matching (#223)
* feat: improve iplBoard matching

Restructure calc, stt_wait_fadeaway and edge_arrow with early returns
and split conditions, iterate hovered objects with an explicit next
pointer, and add the VEC3 add helper used by calc_board_object. 93/94
functions now match; appendRecord still differs because the original
keeps the interrupt state on the stack.

Ported from agent/continue0923/src_scene_board_iplboard without its
string-pool and volatile workarounds.

* feat: improve iplChannelSelect matching

Build the constructor with an initializer list, specialize
HermiteIntp<VEC3>::get and HermiteIntp<f32>::get in the forms this unit
inlines, keep only the three zoom frames setChanZoomOrtho reads, compute
the drag delta as a VEC2 with an explicit zero-speed branch, and give
setChannelScissor its ortho bounds as named locals. 101/102 functions
now match.

Ported from agent/continue0923/src_scene_channelselect_iplchannelselect
without its IPL_CHANNEL_TITLE_NOVTABLE define, hand-placed lbl_ data,
volatile constant loads or register keywords.
2026-09-28 00:09:53 -05:00
coah
9a9f937e9e fix: link RevoEX ncdsystem (#222)
NCDiGetWirelessMacAddress is global in the original (net/wireless_macaddr.c
calls it), and the two .sbss statics are defined in reverse so MWCC emits
ncdInitialized first.
2026-09-28 00:05:58 -05:00
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
1542f73080 feat: link tiPredictLang unit (#220)
Declare the predictlang Sample class with its inline constructors so the
LayoutByNW4R thunks are emitted in the original order, and link the unit.
2026-09-27 23:50:01 -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
3dfeacd4f6 Match HomeButton base unit (#217)
Name the HBMAllocMem result so create's pane manager web colors like the original, replace the lbl_ float externs with literals, move the unused HomeButton int constants to in-class initializers, and emit calc_battery before calc_letter. HBMBase.cpp is now Matching.
2026-09-27 23:32:44 -05:00
coah
36f3716be7 link matching iplCalendar, CDBConv, WPAD and cntcache (#216) 2026-09-27 23:31:40 -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
75c7a24c2f docs: define agent reporting rules (#212) 2026-09-22 22:39:00 -05:00
coah
12c7a67d2c Match iplwww browser object (#208) 2026-09-22 22:21:38 -05:00
coah
e2c26aad07 Match iplCalendar data (#210) 2026-09-22 21:32:40 -05:00
coah
622b7e678e Match RVL SDK FAFinfo wrapper (#211) 2026-09-22 21:31:13 -05:00
coah
ddbb9b1ab9 Match MSL strtoul unit (#209) 2026-09-22 21:30:47 -05:00
coah
4b71db7dfd Match FAInitDiskManager data (#207) 2026-09-22 21:23:18 -05:00
coah
e052c9ae0c Match RVL SDK ferror wrapper (#206) 2026-09-22 21:22:57 -05:00
coah
a843f0770f Match RVL SDK flock wrapper (#204) 2026-09-22 03:49:37 -05:00
coah
c356c90f22 Match RVL SDK ferror wrapper (#203) 2026-09-22 03:49:32 -05:00
coah
6af767089f Match RVL SDK FAFclose wrapper (#201) 2026-09-22 03:40:42 -05:00
coah
bee0a51dbf Match MSL wctype tables (#200) 2026-09-22 03:40:29 -05:00
coah
d9e7306a99 Match RVL SDK errnum wrapper (#198) 2026-09-22 03:37:57 -05:00
coah
f214b726b5 Match RVL SDK closedir wrapper (#190) 2026-09-22 03:35:37 -05:00
coah
cbe489cd37 Match AXFX HiExp reverb unit (#195) 2026-09-22 03:33:39 -05:00
coah
d78ab4cfd1 Link matching www browser unit (#193) 2026-09-22 03:32:00 -05:00
coah
311b437e5f Match RVL SDK feof wrapper (#192) 2026-09-22 03:31:56 -05:00
coah
8581b15e80 Match RVL SDK OS exception jump (#191) 2026-09-22 03:31:22 -05:00
coah
16317c11e2 Match RVLFaceLib controller data (#188) 2026-09-22 03:28:53 -05:00
coah
667b9f6fa2 Match MSL wide string helpers (#187) 2026-09-22 03:27:28 -05:00
coah
bf479c7e3f Match ChannelTitle unit (#182) 2026-09-22 03:22:51 -05:00
coah
5ce99fb34c Match RVL SDK fsync wrapper (#179) 2026-09-22 03:19:44 -05:00
coah
44a074bdce Link matching TVRC unit (#178) 2026-09-22 03:17:51 -05:00
coah
59e3ec6007 Match Kitayama normal state (#175) 2026-09-22 03:13:59 -05:00
coah
f9a70d7d43 Match RVL SDK fclose wrapper (#174) 2026-09-22 03:12:48 -05:00
coah
e5adf3de29 Link matching TMC JPEG inverse quantizer (#173) 2026-09-22 03:11:46 -05:00
coah
373ea6a875 Link matching TMC JPEG jdec_main unit (#172) 2026-09-22 03:11:09 -05:00
coah
84c3af7235 Link matching TMC Huffman decoder (#171) 2026-09-22 03:09:50 -05:00
coah
1f0ce55081 Link matching iplDate unit (#170) 2026-09-22 03:09:47 -05:00
coah
002e2e7e36 Link matching NWC24 user ID unit (#168) 2026-09-22 03:07:33 -05:00
coah
6713cca2e3 Match MSL file position helpers (#167) 2026-09-22 03:06:52 -05:00
coah
43fb4f1bb7 Match MSL extras unit (#165) 2026-09-22 03:06:49 -05:00
coah
e926be4585 Match RVLFaceLib system unit (#166) 2026-09-22 03:05:56 -05:00
coah
8d95ccd8ab Match CDB filesystem data padding (#164) 2026-09-22 03:05:14 -05:00