Commit Graph

101 Commits

Author SHA1 Message Date
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
Tim Schneeberger
92848fa2dd Fix header order 2026-07-22 06:04:24 +02:00
Tim Schneeberger
952034f346 Cleanup 2026-07-22 05:55:18 +02:00
Tim Schneeberger
5899a4dadd More VmStep improvements 2026-07-22 04:02:33 +02:00
Tim Schneeberger
bf2641387c Minor VmStep improvement 2026-07-20 14:13:06 +02:00
Tim Schneeberger
eae8617e28 Improve VmStep & match some other functions 100% 2026-07-20 08:35:51 +02:00
Tim Schneeberger
cd8bdbd263 Add opcodes & cleanup 2026-07-18 22:47:00 +02: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
6e21fdfce0 Fix regression 2026-07-18 20:59:28 +02:00
Tim Schneeberger
9d2b8a0e5b Rename CHANSVmObjType members 2026-07-18 20:58:05 +02:00
Tim Schneeberger
cb201ffe44 Cleanup VmAddExe, VmPushFuncReturnInfo, CHANSVmLinkModules, structs 2026-07-18 20:37:39 +02:00
Tim Schneeberger
a914b31ed8 VmAddExe 99% match 2026-07-18 05:37:43 +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
bf96b9ba87 Match VmAddExe, VmCallMethod, VmLinkModules & cleanup 2026-07-17 17:31:27 +02:00