Commit Graph

111 Commits

Author SHA1 Message Date
coah
dca6cd9aef cleanup(HermiteIntp): name start/end tangents (#502)
Rename Ghidra param_5/param_6 and unkVal0/unkVal1 to startTangent/endTangent
and mStartTangent/mEndTangent across the HermiteIntp header and users.
2026-10-01 17:05:40 -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
21c1e8a207 Match get_cursor_pos 2026-09-22 06:52:29 +00:00
coah
953b301d76 Link matching iplUtility unit (#77)
* Link matching iplUtility unit

* Mark utility constructor shim weak
2026-09-21 22:29:28 -05:00
coah
1e9dd58f0d Match Scroller calc 2026-09-22 01:10:49 +00:00
coah
e42af3a3f3 Improve iplUtility matching 2026-09-21 21:00:19 +00:00
coah
a77574585d Improve ESMisc matching
Match TMDFile::Exist and improve DeleteUnauthorizedData code generation.
2026-09-21 15:50:59 -05:00
coah
38568f101d Improve DeleteUnauthorizedData matching
Apply the measured source-shape improvement for DeleteUnauthorizedData.
2026-09-21 14:28:09 -05:00
coah
671814b4a1 Match NumInodesSaveDirRoot
Reproduce the original MWCC instruction stream for NumInodesSaveDirRoot.
2026-09-21 14:27:59 -05:00
coah
97e706ba33 Match CheckSafeDeleteTitle
Reproduce the original MWCC instruction stream for CheckSafeDeleteTitle.
2026-09-21 14:27:55 -05:00
coah
801597a0ff Match ESMisc checkContentsNum
Reproduce the original MWCC instruction stream for checkContentsNum.
2026-09-21 14:27:49 -05:00
coah
aca83cf265 Match DeleteEmptyTitles
Reproduce the original MWCC instruction stream for DeleteEmptyTitles.
2026-09-21 14:27:44 -05:00
coah
575bd94eaf Match GetValidTicketIndex
Reproduce the original MWCC instruction stream for GetValidTicketIndex.
2026-09-21 14:27:38 -05:00
coah
5586153226 Match ESMisc meta content deletion
Reproduce the original MWCC instruction stream for DeleteMetaContent.
2026-09-21 14:27:33 -05:00
coah
ddf9f5051d Match ESMisc savedata deletion
Reproduce the original MWCC instruction stream for DeleteSavedata.
2026-09-21 14:27:28 -05:00
coah
0752113968 Match ESMisc NumPrivateContents
Reproduce the original MWCC instruction stream for NumPrivateContents.
2026-09-21 14:27:23 -05:00
coah
2f7c79cc59 Match ESMisc title content deletion 2026-09-19 14:58:00 +00:00
coah
9c520761ec Match ESMisc title directory preparation 2026-09-19 14:31:42 +00:00
coah
6c9bb465be Match ESMisc download task cleanup 2026-09-19 14:13:43 +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
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
051ac1986c Fix naming & formatting 2026-07-09 22:03:56 +02:00
Tim Schneeberger
3296eb3404 Run clang-format 2026-07-09 19:56:37 +02:00
Tim Schneeberger
19cc924e6e Fix formatting 2026-07-09 19:52:18 +02:00
Tim Schneeberger
7a18f4d6f1 Move mLangPath into namespace 2026-07-09 19:32:30 +02:00
Tim Schneeberger
88f09c1eb5 100% match .sdata and several functions that depended on it 2026-07-09 19:32:30 +02:00
Tim Schneeberger
d02a74cfdb Remove explicit data declarations 2026-07-09 19:32:30 +02:00
Tim Schneeberger
fcf9b994cf Improve .data match 2026-07-09 19:32:30 +02:00
Tim Schneeberger
388108a1a6 100% .sdata2 2026-07-09 19:32:30 +02:00
Tim Schneeberger
39431e6e4b Equivalent match BScroller::calc 2026-07-09 19:32:30 +02:00
Tim Schneeberger
0d96ae91f9 100% setCalendarTime 2026-07-09 19:32:30 +02:00
Tim Schneeberger
0224fe20bf 100% UTF16ToU32 2026-07-09 19:32:30 +02:00
Tim Schneeberger
42d2fc70e2 Move stray scroller functions to top 2026-07-09 19:32:30 +02:00
Tim Schneeberger
612b464736 Fix mistake 2026-07-09 19:32:30 +02:00
Tim Schneeberger
9f2d77d8ae Improve BScroller::_get 2026-07-09 19:32:30 +02:00
Tim Schneeberger
f3d428a774 100% tpl_validity ctor (with cursed pointer arithmetic) 2026-07-09 19:32:30 +02:00
Tim Schneeberger
1213193c3b Cleanup 2026-07-09 19:32:30 +02:00
Tim Schneeberger
e7e843d706 Improve setCalendarTime and BScroller::calc 2026-07-09 19:32:30 +02:00
Tim Schneeberger
406a4a22e0 Fix abs name shadowing 2026-07-09 19:32:30 +02:00
Tim Schneeberger
2be58006ce Remove unneeded cast 2026-07-09 19:32:30 +02:00
Tim Schneeberger
75403f1b33 Implement BScroller/Scroller::calc 2026-07-09 19:32:30 +02:00
Tim Schneeberger
9edfd20975 Avoid goto 2026-07-09 19:32:30 +02:00
Tim Schneeberger
ed1ab37f2e Cleanup validity checks 2026-07-09 19:32:30 +02:00
Tim Schneeberger
6b43c677fe Add data for tpl_validity 2026-07-09 19:32:30 +02:00
Tim Schneeberger
bb8227403e Cleanup 2026-07-09 19:32:30 +02:00
Tim Schneeberger
224edd8108 100% tpl_validity::is_valid_cmn 2026-07-09 19:32:30 +02:00
Tim Schneeberger
52723c55e3 99.9% match tpl_validity::is_valid_cmn 2026-07-09 19:32:30 +02:00
Tim Schneeberger
6ac5da8849 try to use macros 2026-07-09 19:32:30 +02:00