// // GJSmartTemplate::getPrefabWithID from 0x539c28 to 0x539c60 (56 bytes) // // 3 xrefs: // > EditorUI::createPrefab @ 0x3a4276 // > BrowseSmartKeyLayer::updateChanceValues @ 0x53fbaa // > BrowseSmartKeyLayer::addChanceToSelected @ 0x53fd18 // // 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 // int __fastcall GJSmartTemplate::getPrefabWithID(int a1, const std::string *a2, int a3) { cocos2d::CCArray *v4; // r0 cocos2d::CCArray *v5; // r5 unsigned int i; // r4 int result; // r0 if ( a3 > 0 ) { v4 = (cocos2d::CCArray *)cocos2d::CCDictionary::objectForKey(*(cocos2d::CCDictionary **)(a1 + 52), a2); v5 = v4; if ( v4 ) { if ( cocos2d::CCArray::count(v4) ) { for ( i = 0; i < cocos2d::CCArray::count(v5); ++i ) { result = cocos2d::CCArray::objectAtIndex(v5, i); if ( *(_DWORD *)(result + 60) == a3 ) return result; } } } } return 0; }
GD Web Decomp Icon

GD Web Decomp

Raw Source