//
// EditorSFXActionConfigLayer::refreshModeButtons from 0x77bd74 to 0x77bdb4 (64 bytes)
//
// 2 xrefs:
// > EditorSFXActionConfigLayer::onToggleMode @ 0x77bdea
// > EditorSFXActionConfigLayer::init @ 0x77ca02
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 11:59:23 +0000
//
int __fastcall EditorSFXActionConfigLayer::refreshModeButtons(EditorSFXActionConfigLayer *this)
{
EditorSFXManager *v2; // r0
int result; // r0
const char *v4; // r1
v2 = (EditorSFXManager *)EditorSFXManager::sharedState(this);
result = EditorSFXManager::getPlayMode(v2, *((_DWORD *)this + 179));
if ( *((_DWORD *)this + 180) )
{
if ( result )
v4 = "GJ_button_04.png";
else
v4 = "GJ_button_02.png";
ButtonSprite::updateBGImage(*((char **)this + 180), v4);
return (*(int (__fastcall **)(_DWORD, _DWORD, int))(**(_DWORD **)(*((_DWORD *)this + 180) + 540) + 124))(
*(_DWORD *)(*((_DWORD *)this + 180) + 540),
0,
-1077936128);
}
return result;
}