// // SetupSpawnPopup::onSelectRemap from 0x100290b60 to 0x100290c53 (243 bytes) // // 1 xrefs: // > SetupSpawnPopup::updateRemapButtons @ 0x10029079b // // 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 SetupSpawnPopup::onSelectRemap(SetupSpawnPopup *a1, cocos2d::CCObject *a2) { unsigned __int64 v2; // rcx std::__vector_base::pointer begin; // rdx int v4; // eax int v5; // ecx cocos2d::CCDirector *v6; // rax cocos2d::CCScheduler *v7; // rax if ( a1->m_isBusy ) return; v2 = ((int (__fastcall *)(cocos2d::CCObject *))a2->getTag)(a2); begin = a1->m_remapGroups.__begin_; if ( ((char *)a1->m_remapGroups.__end_ - (char *)begin) >> 3 <= v2 ) sub_100290C90(a2); v4 = begin[2 * v2]; if ( a1->m_remapOriginalID != v4 ) { v5 = begin[2 * v2 + 1]; LABEL_8: a1->m_remapOriginalID = v4; a1->m_remapNewID = v5; SetupTriggerPopup::updateValue(a1, -1, (float)v4); SetupTriggerPopup::updateValue(a1, -2, (float)a1->m_remapNewID); if ( !a1->m_isBusy ) goto LABEL_6; return; } v5 = begin[2 * v2 + 1]; if ( a1->m_remapNewID != v5 ) goto LABEL_8; *(_QWORD *)&a1->m_remapOriginalID = 0; if ( !a1->m_isBusy ) { LABEL_6: v6 = cocos2d::CCDirector::sharedDirector(); v7 = (cocos2d::CCScheduler *)((__int64 (__fastcall *)(cocos2d::CCDirector *))v6->getScheduler)(v6); cocos2d::CCScheduler::scheduleSelector( v7, (cocos2d::SEL_SCHEDULE)(unsigned __int64)SetupSpawnPopup::updateRemapButtons, a1, 0.0, 0xFFFFFFFE, 0.0, 0); } }
GD Web Decomp Icon

GD Web Decomp

Raw Source