// // cocos2d::CCDirector::levelForSceneInStack from 0x100484650 to 0x10048469e (78 bytes) // // 0 xrefs: // // 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 cocos2d::CCDirector::levelForSceneInStack(cocos2d::CCDirector *a1, cocos2d::CCScene *a2) { cocos2d::CCArray *m_pobScenesStack; // rcx int result; // eax cocos2d::ccArray *data; // rcx __int64 num; // rdx cocos2d::CCScene **arr; // rcx unsigned __int64 v7; // rdi int v8; // edx m_pobScenesStack = a1->m_pobScenesStack; result = 0; if ( m_pobScenesStack ) { data = m_pobScenesStack->data; num = data->num; if ( data->num ) { arr = (cocos2d::CCScene **)data->arr; v7 = (unsigned __int64)&arr[num - 1]; v8 = 1; while ( *arr ) { if ( *arr == a2 ) return v8; ++arr; ++v8; if ( (unsigned __int64)arr > v7 ) return result; } } } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source