// // Java_org_cocos2dx_lib_Cocos2dxRenderer_nativeOnSurfaceChanged from 0xd805a8 to 0xd806c4 (284 bytes) // // 1 xrefs: // > @ 0x49708 // // 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 13:08:09 +0000 // __int64 __fastcall Java_org_cocos2dx_lib_Cocos2dxRenderer_nativeOnSurfaceChanged( __int64 a1, __int64 a2, int a3, int a4) { cocos2d::CCDirector *v6; // x23 __int64 v7; // x22 const cocos2d::CCSize *v8; // x0 float v10[2]; // [xsp+68h] [xbp+68h] BYREF float v11; // [xsp+70h] [xbp+70h] BYREF v6 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(_stack_chk_guard); v7 = *((_QWORD *)v6 + 24); if ( a3 > 0 && a4 > 0 ) { if ( v7 ) { v8 = (const cocos2d::CCSize *)(*(__int64 (__fastcall **)(_QWORD))(*(_QWORD *)v7 + 48LL))(*((_QWORD *)v6 + 24)); cocos2d::CCSize::CCSize(v10, v8); if ( (int)v10[0] != a3 || (int)v10[1] != a4 ) { (*(void (__fastcall **)(__int64, float, float))(*(_QWORD *)v7 + 56LL))(v7, (float)a3, (float)a4); cocos2d::CCSize::CCSize(&v11, (float)a3, (float)a4); cocos2d::CCDirector::updateScreenScale((__int64)v6, &v11); cocos2d::CCDirector::setViewport(v6); cocos2d::CCDirector::setProjection((__int64)v6, 0); } } } return _stack_chk_guard; }
GD Web Decomp Icon

GD Web Decomp

Raw Source