// // cocos2d::CCArray::randomObject from 0x5c1edc to 0x5c1f26 (74 bytes) // // 3 xrefs: // > LevelTools::sortSpeedObjects @ 0x32ca84 // > CurrencyRewardLayer::createObjectsFull @ 0x4d1e22 // > cocos2d::CCDictionary::randomObject @ 0x5c0e18 // // 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 // cocos2d::CCObject *__fastcall cocos2d::CCArray::randomObject(cocos2d::CCArray *this) { cocos2d::CCObject *result; // r0 float v3; // s14 result = (cocos2d::CCObject *)this->data->num; if ( result ) { v3 = vcvts_n_f32_s32(rand(), 0x1Fu); if ( v3 == 1.0 ) v3 = 0.0; return this->data->arr[(float)((float)this->data->num * v3)]; } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source