// // cocos2d::CCEGLViewProtocol::updateDesignResolutionSize from 0x18006e490 to 0x18006e649 (441 bytes) // // 4 xrefs: // > @ 0x180143720 // > @ 0x1801437a4 // > @ 0x18014cf68 // > @ 0x1801be218 // // This function is hookable on this platform (idp: pc, 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:21:55 +0000 // void __fastcall cocos2d::CCEGLViewProtocol::updateDesignResolutionSize(cocos2d::CCEGLViewProtocol *this) { float v1; // xmm11_4 float v3; // xmm10_4 float v4; // xmm8_4 float v5; // xmm9_4 int v6; // eax float v7; // xmm7_4 float v8; // xmm6_4 float v9; // xmm0_4 float v10; // xmm0_4 float v11; // xmm0_4 float v12; // xmm8_4 float v13; // xmm11_4 struct cocos2d::CCDirector *v14; // rbx _DWORD *v15; // rax v1 = *((float *)this + 4); if ( v1 > 0.0 ) { v3 = *((float *)this + 5); if ( v3 > 0.0 ) { v4 = *((float *)this + 6); if ( v4 > 0.0 ) { v5 = *((float *)this + 7); if ( v5 > 0.0 ) { v6 = *((_DWORD *)this + 27); v7 = v3 / v5; v8 = v1 / v4; *((float *)this + 26) = v3 / v5; *((float *)this + 25) = v1 / v4; switch ( v6 ) { case 1: v8 = fmaxf(v8, v7); *((float *)this + 26) = v8; *((float *)this + 25) = v8; LABEL_13: v7 = v8; v9 = v8; break; case 2: v9 = fminf(v8, v7); *((float *)this + 26) = v9; v7 = v9; *((float *)this + 25) = v9; break; case 3: *((float *)this + 25) = v7; v10 = ceilf(v1 / v7); *((float *)this + 6) = v10; v4 = v10; v9 = v3 / v5; break; default: v9 = v1 / v4; if ( v6 == 4 ) { *((float *)this + 26) = v8; v11 = ceilf(v3 / v8); *((float *)this + 7) = v11; v5 = v11; goto LABEL_13; } break; } v12 = v4 * v9; v13 = (float)(v1 - v12) * 0.5; cocos2d::CCRect::setRect( (cocos2d::CCEGLViewProtocol *)((char *)this + 32), v13, (float)(v3 - (float)(v5 * v7)) * 0.5, v12, v5 * v7); v14 = cocos2d::CCDirector::sharedDirector(); v15 = (_DWORD *)(*(__int64 (__fastcall **)(cocos2d::CCEGLViewProtocol *))(*(_QWORD *)this + 80LL))(this); cocos2d::CCSize::operator=((_DWORD *)v14 + 80, v15); cocos2d::CCNode::updateTweenActionInt(v14, v13); cocos2d::CCDirector::setGLDefaultValues(v14); } } } } }
GD Web Decomp Icon

GD Web Decomp

Raw Source