Commit Graph

115 Commits

Author SHA1 Message Date
coah
6adb0dc52e cleanup(CHANSVm): rename FormatString and LookupScopedObject (#660)
- CHANSVm_8145049C → CHANSVmFormatString
- CHANSVm_81455654 → CHANSVmLookupScopedObject

Unit remains carefully Equivalent; DOL sha1 unchanged.
2026-10-01 18:45:59 -05:00
coah
c9f64372cf cleanup(CHANSVm): rename blob offset/size helpers and MakeU64 (#659)
- CHANSVm_81450D14 → CHANSVmBlobResolveOffset
- CHANSVm_81451314 → CHANSVmBlobGetCount
- CHANSVm_81451348 → CHANSVmBlobHasSpace
- CHANSVm_814540E0 → CHANSVmMakeU64

Unit still Matching; DOL sha1 unchanged.
2026-10-01 18:45:53 -05:00
coah
e305e6047c cleanup(CHANSVm): name float/int/string convert helpers (#657)
- CHANSVm_8144B1D8 → CHANSVmFloatSign
- CHANSVm_8144B30C → CHANSVmConvertToIntFromFloat
- CHANSVm_8144B430 → CHANSVmConvertToFloatFromUndefined
- CHANSVm_8144B470 → CHANSVmConvertToFloatFromInt
- CHANSVm_8144B4D4 → CHANSVmConvertToFloatFromStr
- CHANSVm_8144B62C → CHANSVmFloatToWString
- CHANSVm_8144B734 → CHANSVmConvertToStrFromFloat

Verified ok + sha1 26116613f624061ba99c8d1a299aaa6efa85670d.
2026-10-01 18:45:19 -05:00
coah
3ab6d87c3d cleanup(CHANSVm): name string labels and VmCmpEq bVar (#618)
Rename UTF-16 / class-name / printf / hex placeholders and
CHANSVmConstStringObject* companions; bVar1 → stringsMatch.
2026-10-01 18:07:38 -05:00
coah
137ee3242a cleanup(iplCSPane): name fatal OSFatal color/msg and zero float (#511)
lbl_81697844..47 → scCsFatalColorR/G/B/A, lbl_8166A6E3 → scCsFatalMsg,
lbl_81694FC0 → scCsZeroF.
2026-10-01 17:15:08 -05:00
coah
f7d81a0196 CHANSVm 220/233 (worker 2f51b24f) (#472) 2026-10-01 12:31:21 -05:00
coah
6e7c016ae3 CHANSVm 218/233 (worker 19444f58) (#469) 2026-10-01 10:52:18 -05:00
coah
0c554a1602 CHANSVm 217/233 (worker e7171d72) (#463) 2026-10-01 05:08:52 -05:00
coah
ab01520044 CHANSVm: small fuzzy gains (worker b60f5370) (#460) 2026-10-01 03:31:36 -05:00
coah
699f844395 CHANSVm 216/233 (worker b8f00dfb) (#458) 2026-10-01 03:05:28 -05:00
coah
d9b51418b9 CHANSVm: blob unpack, hmac, slice, float parse (worker e953cfc4) (#452) 2026-10-01 02:02:26 -05:00
coah
82dbaac35d CHANSVm: CHANSVmStep 96.4% (worker 87e5a30c) (#407) 2026-09-30 14:46:29 -05:00
coah
3f5248be4c CHANSVm: data 100%, all 121 jump-table relocations match (worker 7c42cd13) (#401) 2026-09-30 13:48:47 -05:00
coah
930e8f4ecf CHANSVm 208/233 (worker 662bd0e0) (#394) 2026-09-30 12:45:06 -05:00
coah
f1cc81a228 CHANSVm: interpreter case layout (98 of 108 table mismatches left) (worker ff01ec49) (#308) 2026-09-29 20:07:08 -05:00
coah
e00d7aefd6 CHANSVm: 207/233 functions (worker 6abd3e30) (#303) 2026-09-29 19:16:21 -05:00
coah
42647c75c1 CHANSVm: 206/233 functions, rodata 100% (worker 9f9055e9) (#299) 2026-09-29 18:51:35 -05:00
coah
46f34f11f5 CHANSVm: 205/233 functions (worker 585bcf56) (#297) 2026-09-29 18:28:33 -05:00
coah
2b4ed18122 CHANSVm: 204/233 functions (worker 5e97a5b0) (#294) 2026-09-29 18:09:11 -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
9e9c6bcd54 Match channel script matrix data 2026-09-22 06:54:58 +00:00
coah
51f1c36f3f Match iplCSMtx data 2026-09-22 06:10:52 +00:00
coah
7c26f15caa Match systemmenu CSPane (#88) 2026-09-21 23:13:23 -05:00
coah
3a259b7948 Match CHANS VM float formatting 2026-09-21 04:01:50 +00:00
coah
e1e9762018 Match VmArrayJoinSub 2026-09-20 04:00:15 +00:00
coah
69ff459b95 Match CSPane get_vec 2026-09-20 03:42:43 +00:00
coah
ebad2bc3ac Match CSPane get_scale 2026-09-20 03:40:12 +00:00
coah
9c3365eb3f Match CHANSVmConvertToStrFromInt 2026-09-20 03:36:04 +00:00
coah
e7fd665754 Match CHANSVmDebugPrintf 2026-09-20 03:32:17 +00:00
coah
65331d1af2 Match CSPane get_size 2026-09-20 03:27:31 +00:00
coah
87aaf4ce7e Match CHANSVmInit 2026-09-20 03:27:27 +00:00
coah
0669c0b95a Match CHANSVmNewImageObject 2026-09-20 03:19:03 +00:00
coah
d59f929a2c Match CHANSVmCopyObject 2026-09-20 01:06:39 +00:00
coah
5235792d68 Match CSPane become_youngest_pane 2026-09-20 00:36:43 +00:00
coah
988845f883 Match VmPushFuncReturnInfo 2026-09-19 23:31:59 +00:00
coah
3df41191f6 Match CHANSVmNewImageObject 2026-09-19 16:54:37 +00:00
coah
433893e2e3 Match VmStringCharCodeAt 2026-09-19 16:52:42 +00:00
coah
e53e9ff912 Revert unmatched image probe 2026-09-19 16:29:55 +00:00
coah
44dc8ee92d Match CHANSVmNewImageObject 2026-09-19 16:29:19 +00:00
coah
48ebd50dd0 Match VmArrayPop 2026-09-19 16:21:21 +00:00
coah
d761a96430 Match VmArrayShift 2026-09-19 16:20:24 +00:00
coah
57ae230a28 Match VmArrayNew2d 2026-09-19 15:30:26 +00:00
coah
8414327d1e Match VmBlobSetBlob 2026-09-19 15:26:01 +00:00
coah
1e6e692620 Match VmBlobGetWString 2026-09-19 15:23:26 +00:00
coah
cbf927b60c Match VmDateCommon 2026-09-19 15:19:29 +00:00
coah
e5db5df608 Match CHANSVmInit 2026-09-19 15:11:51 +00: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
Tim Schneeberger
2fdcc7b70e Fix formatting & code style 2026-07-23 06:45:32 +02:00
Tim Schneeberger
89d7605126 Fix CHANSVmAlloc regression 2026-07-22 06:09:42 +02:00