// // SetupItemEditTriggerPopup::onOpButton from 0xa4bbf0 to 0xa4bcec (252 bytes) // // 3 xrefs: // > @ 0x51600 // > SetupItemEditTriggerPopup::init @ 0xa4b108 // > @ 0x122a9e8 // // 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 SetupItemEditTriggerPopup::onOpButton(SetupItemEditTriggerPopup *a1, cocos2d::CCObject *a2) { int v4; // w19 int v5; // w2 float v6; // s0 int v7; // [xsp+38h] [xbp+38h] v4 = a2->getTag(a2); v5 = (int)a1->getValue(a1, v4) + 1; if ( (unsigned int)(v4 - 485) <= 1 ) { if ( v5 > 3 ) goto LABEL_4; goto LABEL_8; } if ( (unsigned int)(v4 - 578) > 1 ) { if ( v5 > 4 ) { LABEL_4: v5 = 0; goto LABEL_5; } LABEL_8: if ( v5 > 0 ) goto LABEL_9; goto LABEL_5; } if ( v5 <= 2 ) goto LABEL_8; v5 = 0; LABEL_5: if ( v4 == 481 ) { v6 = 1.0; v5 = 1; goto LABEL_12; } LABEL_9: if ( v5 <= 2 && v4 == 482 ) { v6 = 3.0; v5 = 3; } else { v6 = (float)v5; } LABEL_12: v7 = v5; SetupTriggerPopup::updateValue(a1, v4, v6); SetupItemEditTriggerPopup::updateOpButton(a1, (CCMenuItemSpriteExtra *)a2, v7, v4); SetupItemEditTriggerPopup::updateFormulaLabel(a1); }
GD Web Decomp Icon

GD Web Decomp

Raw Source