// // SetupRandAdvTriggerPopup::onAddChance from 0x10038e620 to 0x10038e6db (187 bytes) // // 1 xrefs: // > SetupRandAdvTriggerPopup::init @ 0x10038e347 // // 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 // void __fastcall SetupRandAdvTriggerPopup::onAddChance(SetupRandAdvTriggerPopup *a1, cocos2d::CCObject *a2) { double v2; // xmm0_8 int v3; // r14d char *v4; // r15 int v5; // r15d char *v6; // r12 char *v7[2]; // [rsp+8h] [rbp-38h] BYREF char *v8; // [rsp+18h] [rbp-28h] CCTextInputNode::getString(v7, (__int64)a1->m_groupIDInput, v2); if ( ((__int64)v7[0] & 1) != 0 ) { v4 = v8; v3 = atoi(v8); operator delete(v4); } else { v3 = atoi((const char *)v7 + 1); } CCTextInputNode::getString(v7, (__int64)a1->m_chanceInput, v2); if ( ((__int64)v7[0] & 1) != 0 ) { v6 = v8; v5 = atoi(v8); operator delete(v6); } else { v5 = atoi((const char *)v7 + 1); } if ( v3 > 0 && v5 > 0 ) { SetupRandAdvTriggerPopup::addChance(a1, v3, v5); SetupRandAdvTriggerPopup::updateGroupIDButtons(a1); } }
GD Web Decomp Icon

GD Web Decomp

Raw Source