// // SetupRandAdvTriggerPopup::onAddChance from 0x65cce8 to 0x65cd78 (144 bytes) // // 0 xrefs: // // 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:55:34 +0000 // void __fastcall SetupRandAdvTriggerPopup::onAddChance( SetupRandAdvTriggerPopup *this, cocos2d::CCObject *a2, char *a3, int a4) { int v5; // r4 char *v6; // r0 int v7; // r8 int v8; // r4 char *v9; // r0 int v10; // r8 _DWORD v11[2]; // [sp+0h] [bp-10h] BYREF char *v12; // [sp+8h] [bp-8h] int v13; // [sp+Ch] [bp-4h] v11[0] = this; v11[1] = a2; v12 = a3; v13 = a4; v5 = 9999; CCTextInputNode::getString((CCTextInputNode *)v11, *((_DWORD *)this + 180)); if ( (v11[0] & 1) != 0 ) v6 = v12; else v6 = (char *)v11 + 1; v7 = atoi(v6); std::string::~string((int)v11); if ( v7 <= 9999 ) v5 = v7; CCTextInputNode::getString((CCTextInputNode *)v11, *((_DWORD *)this + 181)); v8 = v5 & ~(v5 >> 31); if ( (v11[0] & 1) != 0 ) v9 = v12; else v9 = (char *)v11 + 1; v10 = atoi(v9); std::string::~string((int)v11); if ( v8 ) { if ( v10 > 0 ) { SetupRandAdvTriggerPopup::addChance(this, v8, v10); SetupRandAdvTriggerPopup::updateGroupIDButtons((cocos2d::CCArray **)this); } } }
GD Web Decomp Icon

GD Web Decomp

Raw Source