// // SetupItemEditTriggerPopup::updateOpButton from 0x10040c89c to 0x10040c9b4 (280 bytes) // // 2 xrefs: // > SetupItemEditTriggerPopup::init @ 0x10040c488 // > SetupItemEditTriggerPopup::onOpButton @ 0x10040c884 // // This function is hookable on this platform! // // Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings // // local variable allocation has failed, the output may be wrong! void __fastcall SetupItemEditTriggerPopup::updateOpButton( SetupItemEditTriggerPopup *a1, CCMenuItemSpriteExtra *a2, int a3, int a4) { __int64 v5; // x21 cocos2d::CCLabelBMFont *v6; // x19 char *v7; // x1 void **v8; // x1 __int128 v9; // [xsp+8h] [xbp-58h] BYREF __int64 v10; // [xsp+18h] [xbp-48h] void *__p[2]; // [xsp+20h] [xbp-40h] BYREF __int64 v12; // [xsp+30h] [xbp-30h] v5 = *(_QWORD *)&a3; v6 = *(cocos2d::CCLabelBMFont **)(((__int64 (__fastcall *)(CCMenuItemSpriteExtra *))a2->getNormalImage)(a2) + 624); if ( (unsigned int)(a4 - 485) > 1 ) { if ( (a4 & 0xFFFFFFFE) == 0x242 ) { if ( (unsigned int)v5 > 2 ) v7 = "?"; else v7 = off_100821BA0[(unsigned int)v5]; sub_100009900(&v9, v7); } else { sub_10040D254(&v9, v5); } } else { sub_10040D2AC(&v9, v5, 1); } *(_OWORD *)__p = v9; v12 = v10; if ( v10 >= 0 ) v8 = __p; else v8 = (void **)v9; ((void (__fastcall *)(cocos2d::CCLabelBMFont *, void **))v6->setString)(v6, v8); if ( (unsigned int)(a4 - 578) < 2 || (unsigned int)(a4 - 485) <= 1 ) cocos2d::CCLabelBMFont::limitLabelWidth(v6, 50.0, 0.8, 0.0); if ( SHIBYTE(v12) < 0 ) operator delete(__p[0]); }
GD Web Decomp Icon

GD Web Decomp

Raw Source