// // UILayer::togglePlatformerMode from 0x1404cd610 to 0x1404cd6bd (173 bytes) // // 4 xrefs: // > GJBaseGameLayer::toggleDualMode @ 0x140216932 // > LevelEditorLayer::onPlaytest @ 0x1402dfd79 // > PlayLayer::setupHasCompleted @ 0x1403a6aa1 // > @ 0x1406dd424 // // 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 // // Hidden C++ exception states: #wind=1 void UILayer::togglePlatformerMode(UILayer *a1, bool a2) { GameManager *v3; // rcx unsigned int i; // ebx struct cocos2d::CCObject *v5; // rax void *v6; // [rsp+30h] [rbp+8h] a1->m_inPlatformer = a2; if ( a2 ) { v3 = (GameManager *)qword_1406C2ED8; if ( !qword_1406C2ED8 ) { v6 = operator new(0x668u); qword_1406C2ED8 = sub_14017AB00((__int64)v6); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2ED8 + 72LL))(qword_1406C2ED8); v3 = (GameManager *)qword_1406C2ED8; } GameManager::getGameVariable(v3, "0024"); } for ( i = 0; i < cocos2d::CCArray::count(a1->m_uiNodes); ++i ) { v5 = cocos2d::CCArray::objectAtIndex(a1->m_uiNodes, i); ((void (__fastcall *)(struct cocos2d::CCObject *, _QWORD))v5->__vftable[4].update)(v5, 0); } }
GD Web Decomp Icon

GD Web Decomp

Raw Source