// // cocos2d::CCDirector::updateScreenScale from 0x100175bd4 to 0x100175c84 (176 bytes) // // 1 xrefs: // > cocos2d::CCDirector::setupScreenScale @ 0x100175bb0 // // 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 // void __fastcall cocos2d::CCDirector::updateScreenScale(cocos2d::CCDirector *a1, cocos2d::CCSize a2) { double *v2; // x1 float32x2_t v4; // d0 __int64 v5; // x20 cocos2d::CCEGLView *v6; // x0 cocos2d::CCDirector *v7; // x0 float32x2_t v8; // d0 float32x2_t v9; // d1 float32x2_t v10; // [xsp+8h] [xbp-18h] BYREF sub_100022B14(&a1->m_obResolutionInPixels, v2); v4 = vdiv_f32((float32x2_t)a1->m_obResolutionInPixels, (float32x2_t)a1->m_obScaleFactor); if ( (vcgt_f32((float32x2_t)vdup_lane_s32((int32x2_t)v4, 1), v4).u8[0] & 1) != 0 ) v5 = 4; else v5 = 3; v6 = cocos2d::CCEGLView::sharedOpenGLView(); ((void (__fastcall *)(cocos2d::CCEGLView *, __int64, float, float))v6->setDesignResolutionSize)( v6, v5, a1->m_obScaleFactor.width, a1->m_obScaleFactor.height); v7 = cocos2d::CCDirector::sharedDirector(); sub_100022AFC(&v10, (double *)&v7->m_obWinSizeInPoints); v8 = v10; v9 = vdiv_f32(v10, (float32x2_t)a1->m_obScaleFactor); a1->m_fScreenBottom = 0.0; a1->m_fScreenLeft = 0.0; LODWORD(a1->m_fScreenTop) = v8.i32[1]; LODWORD(a1->m_fScreenRight) = v8.i32[0]; *(int8x8_t *)&a1->m_fScreenScaleFactor = vbsl_s8( (int8x8_t)vcgt_f32(v9, (float32x2_t)vrev64_s32((int32x2_t)v9)), (int8x8_t)vdup_lane_s32((int32x2_t)v9, 1), (int8x8_t)vdup_lane_s32((int32x2_t)v9, 0)); *(float32x2_t *)&a1->m_fScreenScaleFactorW = v9; }
GD Web Decomp Icon

GD Web Decomp

Raw Source