// // AppDelegate::setupGLView from 0x3f6d2c to 0x3f6e12 (230 bytes) // // 1 xrefs: // > AppDelegate::applicationDidFinishLaunching @ 0x3f6f9a // // This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False! // // Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings // Generated at Fri, 27 Nov 2026 11:47:17 +0000 // int __fastcall AppDelegate::setupGLView(int this) { _BYTE *v1; // r5 cocos2d::CCDirector *v2; // r0 int v3; // r0 GJKeybindManager *v4; // r6 cocos2d::CCObject *v5; // r0 cocos2d::CCObject *v6; // r7 LocalLevelManager *v7; // r0 cocos2d::CCEGLView *v8; // r0 cocos2d::CCDirector *v9; // r6 cocos2d::CCDirector *v10; // r0 cocos2d::CCEGLView *v11; // r0 int v12; // r0 const cocos2d::CCSize *v13; // r0 cocos2d::CCEGLView *v14; // r0 int v15; // r0 PlatformToolbox *v16; // r0 cocos2d::CCDirector *isLowMemoryDevice; // r0 int v18; // r10 _BYTE v19[8]; // [sp+4h] [bp-24h] BYREF float v20[2]; // [sp+Ch] [bp-1Ch] BYREF _BYTE v21[8]; // [sp+14h] [bp-14h] BYREF _BYTE v22[8]; // [sp+1Ch] [bp-Ch] BYREF v1 = (_BYTE *)this; if ( !*(_BYTE *)(this + 8) ) { v2 = (cocos2d::CCDirector *)cocos2d::CCSize::CCSize((cocos2d::CCSize *)v19, 480.0, 320.0); v1[8] = 1; v3 = cocos2d::CCDirector::sharedDirector(v2); v4 = (GJKeybindManager *)(*(int (__fastcall **)(int))(*(_DWORD *)v3 + 96))(v3); v5 = (cocos2d::CCObject *)GJKeybindManager::sharedState(v4); v6 = v5; if ( *((cocos2d::CCObject **)v4 + 24) != v5 ) { if ( v5 ) cocos2d::CCObject::retain(v5); v5 = *((cocos2d::CCObject **)v4 + 24); if ( v5 ) v5 = (cocos2d::CCObject *)cocos2d::CCObject::release(v5); *((_DWORD *)v4 + 24) = v6; } v7 = (LocalLevelManager *)GameManager::sharedState(v5); v8 = (cocos2d::CCEGLView *)LocalLevelManager::sharedState(v7); v9 = (cocos2d::CCDirector *)cocos2d::CCEGLView::sharedOpenGLView(v8); v10 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v9); v11 = (cocos2d::CCEGLView *)cocos2d::CCDirector::setOpenGLView(v10, v9); v12 = cocos2d::CCEGLView::sharedOpenGLView(v11); v13 = (const cocos2d::CCSize *)(*(int (__fastcall **)(int))(*(_DWORD *)v12 + 24))(v12); v14 = (cocos2d::CCEGLView *)cocos2d::CCSize::CCSize((cocos2d::CCSize *)v20, v13); v1[21] = v20[0] == 2436.0; v15 = cocos2d::CCEGLView::sharedOpenGLView(v14); v16 = (PlatformToolbox *)(*(int (__fastcall **)(int, _DWORD, _DWORD))(*(_DWORD *)v15 + 28))( v15, LODWORD(v20[0]), LODWORD(v20[1])); isLowMemoryDevice = (cocos2d::CCDirector *)PlatformToolbox::isLowMemoryDevice(v16); v1[19] = (_BYTE)isLowMemoryDevice; v18 = cocos2d::CCDirector::sharedDirector(isLowMemoryDevice); cocos2d::CCSize::CCSize((cocos2d::CCSize *)v21, (const cocos2d::CCSize *)v19); cocos2d::CCSize::CCSize((cocos2d::CCSize *)v22, (const cocos2d::CCSize *)v20); return cocos2d::CCDirector::setupScreenScale(v18, v21, v22, (unsigned __int8)v1[19]); } return this; }
GD Web Decomp Icon

GD Web Decomp

Raw Source