// // Java_org_cocos2dx_lib_Cocos2dxRenderer_nativeOnSurfaceChanged from 0x7ed500 to 0x7ed5ba (186 bytes) // // 0 xrefs: // // 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 12:01:01 +0000 // _DWORD *__fastcall Java_org_cocos2dx_lib_Cocos2dxRenderer_nativeOnSurfaceChanged( cocos2d::CCDirector *a1, int a2, int a3, int a4) { _DWORD *result; // r0 int v7; // r6 _DWORD *v8; // r8 const cocos2d::CCSize *v9; // r0 float v10[2]; // [sp+4h] [bp-14h] BYREF float v11[2]; // [sp+Ch] [bp-Ch] BYREF result = (_DWORD *)cocos2d::CCDirector::sharedDirector(a1); v7 = result[38]; v8 = result; if ( v7 ) { if ( a3 > 0 && a4 > 0 ) { v9 = (const cocos2d::CCSize *)(*(int (__fastcall **)(_DWORD))(*(_DWORD *)v7 + 24))(result[38]); result = cocos2d::CCSize::CCSize(v10, v9); if ( (int)v10[0] != a3 || (int)v10[1] != a4 ) { (*(void (__fastcall **)(int, float, float))(*(_DWORD *)v7 + 28))(v7, (float)a3, (float)a4); cocos2d::CCSize::CCSize(v11, (float)a3, (float)a4); cocos2d::CCDirector::updateScreenScale((int)v8, v11); cocos2d::CCDirector::setViewport((int)v8); return (_DWORD *)cocos2d::CCDirector::setProjection(v8, 0); } } } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source