// // AppDelegate::setupGLView from 0x100306e04 to 0x100306f14 (272 bytes) // // 1 xrefs: // > AppDelegate::applicationDidFinishLaunching @ 0x100306fd4 // // This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True! // // 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:03:08 +0000 // __int64 __fastcall AppDelegate::setupGLView(__int64 result) { _BYTE *v1; // x19 __int64 v2; // x0 __int64 v3; // x20 __int64 v4; // x0 __int64 v5; // x0 float *v6; // x20 __int64 v7; // x0 float *v8; // x0 double *v9; // x0 float *v10; // x0 __int64 v11; // x20 __int64 v12; // [xsp+0h] [xbp-30h] BYREF __int64 v13; // [xsp+8h] [xbp-28h] BYREF __int64 v14; // [xsp+10h] [xbp-20h] BYREF double v15; // [xsp+18h] [xbp-18h] BYREF if ( (*(_BYTE *)(result + 16) & 1) == 0 ) { v1 = (_BYTE *)result; sub_1000262C4((float *)&v15, 480.0, 320.0); v1[16] = 1; v2 = cocos2d::CCDirector::sharedDirector(); v3 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v2 + 192LL))(v2); v4 = GJKeybindManager::sharedState(); v5 = sub_100306F14(v3, v4); GameManager::sharedState(v5); LocalLevelManager::sharedState(); v6 = cocos2d::CCEGLView::sharedOpenGLView(); v7 = cocos2d::CCDirector::sharedDirector(); cocos2d::CCDirector::setOpenGLView(v7, (__int64)v6); v8 = cocos2d::CCEGLView::sharedOpenGLView(); v9 = (double *)(*(__int64 (__fastcall **)(float *))(*(_QWORD *)v8 + 48LL))(v8); sub_100026438(&v14, v9); v1[37] = *(float *)&v14 == 2436.0; v10 = cocos2d::CCEGLView::sharedOpenGLView(); (*(void (__fastcall **)(float *, float, float))(*(_QWORD *)v10 + 56LL))(v10, *(float *)&v14, *((float *)&v14 + 1)); v1[35] = PlatformToolbox::isLowMemoryDevice(); v11 = cocos2d::CCDirector::sharedDirector(); sub_100026438(&v13, &v15); sub_100026438(&v12, (double *)&v14); return cocos2d::CCDirector::setupScreenScale(v11, (double *)&v13, (double *)&v12, (unsigned __int8)v1[35]); } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source