// // SetupCollisionTriggerPopup::updateItemID from 0x140419c00 to 0x140419c99 (153 bytes) // // 6 xrefs: // > SetupCollisionTriggerPopup::onItemIDArrow @ 0x14041972a // > SetupCollisionTriggerPopup::textChanged @ 0x140419875 // > SetupCountTriggerPopup::onItemIDArrow @ 0x14041c2ba // > SetupCountTriggerPopup::textChanged @ 0x14041c405 // > SetupInstantCountPopup::textChanged @ 0x140423575 // > @ 0x1406d91c4 // // 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 // // Merged with: SetupCollisionTriggerPopup::updateItemID, SetupCountTriggerPopup::updateItemID, SetupInstantCountPopup::updateItemID int __fastcall SetupCollisionTriggerPopup::updateItemID(__int64 a1) { int v1; // eax unsigned int v3; // ebx int v4; // ecx __int64 v5; // rax cocos2d::CCArray *v6; // rcx struct cocos2d::CCObject *v7; // rax v1 = *(_DWORD *)(a1 + 960); v3 = 0; v4 = 0; if ( v1 >= 0 ) v4 = v1; if ( v4 > 9999 ) v4 = 9999; v5 = *(_QWORD *)(a1 + 656); *(_DWORD *)(a1 + 960) = v4; if ( v5 ) { *(_DWORD *)(v5 + 1696) = v4; } else { v6 = *(cocos2d::CCArray **)(a1 + 664); if ( v6 ) { LODWORD(v5) = cocos2d::CCArray::count(v6); if ( (_DWORD)v5 ) { do { v7 = cocos2d::CCArray::objectAtIndex(*(cocos2d::CCArray **)(a1 + 664), v3++); v7[30].m_nTag = *(_DWORD *)(a1 + 960); LODWORD(v5) = cocos2d::CCArray::count(*(cocos2d::CCArray **)(a1 + 664)); } while ( v3 < (unsigned int)v5 ); } } } return v5; }
GD Web Decomp Icon

GD Web Decomp

Raw Source