// // cocos2d::CCArray::randomObject from 0xad4084 to 0xad40fc (120 bytes) // // 4 xrefs: // > LevelTools::sortSpeedObjects @ 0x606a84 // > CurrencyRewardLayer::createObjectsFull @ 0x91016c // > cocos2d::CCDictionary::randomObject @ 0xad1574 // > @ 0x5c8b0 // // 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) { float v2; // s1 if ( !this->data->num ) return nullptr; v2 = (float)rand() * 4.6566e-10; if ( v2 == 1.0 ) v2 = 0.0; return this->data->arr[(float)((float)this->data->num * v2)]; }
GD Web Decomp Icon

GD Web Decomp

Raw Source