Skip to content

zGameLoop progress / zGame_HackDrawCard - #786

Open
LSLees wants to merge 10 commits into
bfbbdecomp:mainfrom
LSLees:zGame
Open

zGameLoop progress / zGame_HackDrawCard#786
LSLees wants to merge 10 commits into
bfbbdecomp:mainfrom
LSLees:zGame

Conversation

@LSLees

@LSLees LSLees commented Aug 24, 2026

Copy link
Copy Markdown
Contributor

No description provided.

@github-actions

Copy link
Copy Markdown

main/SB/Game/zGame

Section From To Bytes
📈 .sbss 49.47% 64.36% +33
📈 .sdata2 86.81% 89.58% +4
📈 .text 67.67% 79.21% +999
Function From To Bytes
📈 zGameLoop() 0.00% 35.21% +663
📈 zGame_HackDrawCard(float, float, float, float, RwRaster*) 0.00% 92.45% +336

Comment thread src/SB/Game/zGame.cpp Outdated
static S32 zGameLoopContinue();
static void zGameUpdateMode();
void RwGameCubeSetMinRetraceCount(RwChar);
void __cvt_dbl_usll();

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is a compiler generated function. Please remove this declaration.

Comment thread src/SB/Game/zGame.cpp Outdated

gGameWhereAmI = eGameWhere_LoopStart;
zGameStateSwitch(eGameState_Play);
__cvt_dbl_usll();

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

as mentioned, this is compiler generated. Taking a quick look at the asm I see it accessing address 0x800000F8 and dividing by 60. Can you try something like

iTime var = (double)OS_TIMER_CLOCK() / 60.0;

@github-actions

Copy link
Copy Markdown

main/SB/Game/zGame

Section From To Bytes
📈 .sbss 49.47% 64.36% +33
📈 .sdata2 86.81% 89.58% +4
📈 .text 67.67% 79.20% +998
Function From To Bytes
📈 zGameLoop() 0.00% 35.14% +662
📈 zGame_HackDrawCard(float, float, float, float, RwRaster*) 0.00% 92.45% +336

main/SB/Game/zTalkBox

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

@github-actions

Copy link
Copy Markdown

main/SB/Game/zGame

Section From To Bytes
📈 .sbss 49.47% 64.36% +33
📈 .sdata2 86.81% 89.58% +4
📈 .text 67.67% 79.20% +998
Function From To Bytes
📈 zGameLoop() 0.00% 35.14% +662
📈 zGame_HackDrawCard(float, float, float, float, RwRaster*) 0.00% 92.45% +336

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.

2 participants