// // SetupSmartTemplateLayer::create from 0x1004e7a00 to 0x1004e7b48 (328 bytes) // // 5 xrefs: // > LevelBrowserLayer::onNew @ 0x10048d1a3 // > LevelBrowserLayer::createNewSmartTemplate @ 0x1004912c2 // > LevelBrowserLayer::cellPerformedAction @ 0x100491d32 // > sub_100491D50 @ 0x100491dc3 // > BrowseSmartTemplateLayer::onBack @ 0x1004ea9c0 // // 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 // SetupSmartTemplateLayer *__fastcall SetupSmartTemplateLayer::create(GJSmartTemplate *a1) { char *v1; // rbx v1 = (char *)operator new(0x2A0u); cocos2d::CCLayerColor::CCLayerColor((__int64)v1); *((_QWORD *)v1 + 72) = 0; *((_DWORD *)v1 + 146) = 0; v1[588] = 0; *((_OWORD *)v1 + 34) = 0; *(_OWORD *)(v1 + 553) = 0; *((_OWORD *)v1 + 37) = 0; *((_QWORD *)v1 + 76) = 0; *((_DWORD *)v1 + 154) = -1; *((_WORD *)v1 + 310) = 0; *((_DWORD *)v1 + 156) = -1; v1[628] = 0; *(_QWORD *)v1 = off_100956920; *((_QWORD *)v1 + 40) = off_100956E60; *((_QWORD *)v1 + 41) = &off_100956ED0; *((_QWORD *)v1 + 42) = off_100956EE8; *((_QWORD *)v1 + 43) = off_100956F08; *((_QWORD *)v1 + 44) = off_100956F28; *((_QWORD *)v1 + 51) = off_100956F50; *((_QWORD *)v1 + 54) = off_100956FD0; *((_QWORD *)v1 + 79) = off_100956FF0; *((_QWORD *)v1 + 80) = &off_100957038; *(_OWORD *)(v1 + 648) = 0; *((_QWORD *)v1 + 83) = 0; if ( SetupSmartTemplateLayer::init((SetupSmartTemplateLayer *)v1, a1) ) { cocos2d::CCObject::autorelease((cocos2d::CCObject *)v1); } else { (*(void (__fastcall **)(char *))(*(_QWORD *)v1 + 16LL))(v1); return nullptr; } return (SetupSmartTemplateLayer *)v1; }
GD Web Decomp Icon

GD Web Decomp

Raw Source