Skip to content

Some cleanup of zTalkBox before I moved on - #785

Open
AARJL wants to merge 24 commits into
bfbbdecomp:mainfrom
AARJL:zTalkBox
Open

Some cleanup of zTalkBox before I moved on#785
AARJL wants to merge 24 commits into
bfbbdecomp:mainfrom
AARJL:zTalkBox

Conversation

@AARJL

@AARJL AARJL commented Aug 15, 2026

Copy link
Copy Markdown
Contributor

No description provided.

AARJL and others added 23 commits December 21, 2025 17:46
    All other functions in zTalkBox.cpp have a 100% match
    Made sure all functions use DWARF local variables when possible
Reordered functions in zTalkBox to try to match objdiff, not all are in the correct order but most are
Completed .bss (8f38) with 100% match
Completed .ctors (4) with 100% match
Completed .data (118) with 100% match
Completed .rodata (1c8) with 100% match
Completed .sbss (20) with 100% match
Completed .sbss2 (8) with 100% match
Completed .sdata (10) with 100% match
Completed .sdata2 (20) with 100% match but [.sdata2-0] is still at 85%
.text (3434) is at a 98% match
.text (224) is at a 96% match
.text (1bc) has 4 100% macthes and one 73% match
Remaining functions in zTalkBox.cpp have 100% match
Made sure all functions use DWARF local variables when possible
Reordered functions in zTalkBox to try to match objdiff, not all are in the correct order but most are
Completed .bss (8f38) with 100% match
Completed .ctors (4) with 100% match
Completed .data (118) with 100% match
Completed .rodata (1c8) with 100% match
Completed .sbss (20) with 100% match
Completed .sbss2 (8) with 100% match
Completed .sdata (10) with 100% match
Completed .sdata2 (20) with 100% match but [.sdata2-0] is still at 85%
.text (3434) is at a 98% match
.text (224) is at a 96% match
.text (1bc) has 4 100% macthes and one 73% match
    Modified it to get some matches but caused a small regression
    I will work through the regression after the PR is discuseed
Removed redundant structs from zTalkBox.h causing errors in other files
  Now has a 100% match with fixed_queue<aqua_beam::ring_segment, 31>::iterator::operator+=(int)
  and with fixed_queue<@unnamed@zTalkBox_cpp@::trigger_pair, 32>::iterator::operator+=(int)
Reverted zTalkBox.cpp DWARF to it's original state
    As a bonus, also got a 100% match here
Updated MasterLovesSlaves to use correct Base tags
Updated .xSnd.h and moved sound_queue methods into the template class
Other minor cleanups
I moved it to the front, but it caused ObjDiff to not recongize the functions.
@github-actions

Copy link
Copy Markdown

main/SB/Game/zEntPlayerOOBState

Section From To Bytes
⚠️ .data 99.22% 91.43% --24
⚠️ .text 90.99% 90.70% --32
Function From To Bytes
⚠️ ztalkbox::callback::callback() 100.00% 0.00% --16
⚠️ ztalkbox::callback::on_signal(unsigned int) 100.00% 0.00% --4
⚠️ ztalkbox::callback::on_start() 100.00% 0.00% --4
⚠️ ztalkbox::callback::on_stop() 100.00% 0.00% --4
⚠️ ztalkbox::callback::on_answer(ztalkbox::answer_enum) 100.00% 0.00% --4

main/SB/Game/zTalkBox

Section From To Bytes
📈 .text 98.13% 99.09% +138
Function From To Bytes
📈 @unnamed@zTalkBox_cpp@::trigger_sound(const xtextbox::jot&) 94.91% 97.95% +19
@unnamed@zTalkBox_cpp@::stop_audio_effect() 87.38% 100.00% +10
@unnamed@zTalkBox_cpp@::refresh_prompts() 96.48% 100.00% +12
ztalkbox::update_all(xScene&, float) 95.57% 100.00% +16
📈 @unnamed@zTalkBox_cpp@::next_state_type::start() 90.83% 97.92% +27
📈 @unnamed@zTalkBox_cpp@::wait_state_type::stop() 93.40% 97.57% +11
pointer_asset::type_name() 0.00% 100.00% +16
location_asset::type_name() 0.00% 100.00% +16
xtextbox::layout::jots() const 0.00% 100.00% +8

@github-actions

Copy link
Copy Markdown

main/SB/Game/zTalkBox

Section From To Bytes
📈 .text 98.13% 99.09% +138
Function From To Bytes
📈 @unnamed@zTalkBox_cpp@::trigger_sound(const xtextbox::jot&) 94.91% 97.95% +19
@unnamed@zTalkBox_cpp@::stop_audio_effect() 87.38% 100.00% +10
@unnamed@zTalkBox_cpp@::refresh_prompts() 96.48% 100.00% +12
ztalkbox::update_all(xScene&, float) 95.57% 100.00% +16
📈 @unnamed@zTalkBox_cpp@::next_state_type::start() 90.83% 97.92% +27
📈 @unnamed@zTalkBox_cpp@::wait_state_type::stop() 93.40% 97.57% +11
pointer_asset::type_name() 0.00% 100.00% +16
location_asset::type_name() 0.00% 100.00% +16
xtextbox::layout::jots() const 0.00% 100.00% +8

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant