// // cocos2d::CCDirector::popToSceneInStack from 0x1004846a0 to 0x1004846f2 (82 bytes) // // 3 xrefs: // > GJScoreCell::onViewProfile @ 0x10025586e // > ProfilePage::onMyLevels @ 0x1007be2e7 // > ProfilePage::onMyLists @ 0x1007be4cf // // 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 // void __fastcall cocos2d::CCDirector::popToSceneInStack(cocos2d::CCDirector *a1, cocos2d::CCScene *a2) { cocos2d::CCArray *m_pobScenesStack; // rax cocos2d::ccArray *data; // rax cocos2d::CCScene **arr; // rcx unsigned __int64 v5; // rdx int v6; // eax m_pobScenesStack = a1->m_pobScenesStack; if ( m_pobScenesStack ) { data = m_pobScenesStack->data; if ( data->num ) { arr = (cocos2d::CCScene **)data->arr; v5 = (unsigned __int64)&arr[data->num - 1]; v6 = 1; while ( *arr ) { if ( *arr == a2 ) { cocos2d::CCDirector::popToSceneStackLevel(a1, v6); return; } ++arr; ++v6; if ( (unsigned __int64)arr > v5 ) return; } } } }
GD Web Decomp Icon

GD Web Decomp

Raw Source