// // GJOptionsLayer::layerForPage from 0x1002d3a08 to 0x1002d3af0 (232 bytes) // // 2 xrefs: // > GJOptionsLayer::addToggleInternal @ 0x1002d3614 // > GameOptionsLayer::setupOptions @ 0x1002e19e4 // // 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::CCLayer *__fastcall GJOptionsLayer::layerForPage(GJOptionsLayer *a1, int a2) { cocos2d::CCDictionary *m_values; // x19 cocos2d::CCString *v5; // x0 char *CString; // x0 __int64 v7; // x0 cocos2d::CCLayer *v8; // x19 cocos2d::CCDictionary *v9; // x21 cocos2d::CCString *v10; // x0 char *v11; // x0 void *__p[2]; // [xsp+8h] [xbp-38h] BYREF char v14; // [xsp+1Fh] [xbp-21h] m_values = a1->m_values; v5 = (cocos2d::CCString *)sub_100268F4C("layer_%i", a2); CString = (char *)cocos2d::CCString::getCString(v5); sub_100009900(__p, CString); v7 = cocos2d::CCDictionary::objectForKey_1(m_values, __p); v8 = (cocos2d::CCLayer *)v7; if ( v14 < 0 ) { operator delete(__p[0]); if ( v8 ) return v8; } else if ( v7 ) { return v8; } v8 = cocos2d::CCLayer::create(); ((void (__fastcall *)(cocos2d::CCLayer *, cocos2d::CCLayer *))a1->m_mainLayer->addChild)(a1->m_mainLayer, v8); v9 = a1->m_values; v10 = (cocos2d::CCString *)sub_100268F4C("layer_%i", a2); v11 = (char *)cocos2d::CCString::getCString(v10); sub_100009900(__p, v11); cocos2d::CCDictionary::setObject_1(v9, v8, __p); if ( v14 < 0 ) operator delete(__p[0]); return v8; }
GD Web Decomp Icon

GD Web Decomp

Raw Source