// // cocos2d::CCDirector::updateContentScale from 0x7cb052 to 0x7cb0e0 (142 bytes) // // 3 xrefs: // > VideoOptionsLayer::onApply @ 0x52e51a // > GraphicsReloadLayer::performReload @ 0x52fc56 // > cocos2d::CCDirector::setupScreenScale @ 0x7cb112 // // 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:00:30 +0000 // void __fastcall cocos2d::CCDirector::updateContentScale(cocos2d::CCDirector *this, int a2) { float v3; // r1 float v4; // s15 int v5; // r3 if ( a2 == 2 || a2 == 3 || a2 != 1 && (*((float *)this + 74) >= (float)(*((float *)this + 72) * 1.5) || *((float *)this + 73) >= (float)(*((float *)this + 71) * 1.5)) ) { v3 = 2.0; } else { v3 = 1.0; } cocos2d::CCDirector::setContentScaleFactor(this, v3); v4 = *((float *)this + 64); if ( v4 == 4.0 ) { v5 = 3; } else if ( v4 == 2.0 ) { v5 = 2; } else { if ( v4 != 1.0 ) return; v5 = 1; } *((_DWORD *)this + 75) = v5; }
GD Web Decomp Icon

GD Web Decomp

Raw Source