// // cocos2d::CCDirector::updateContentScale from 0x5c3d9a to 0x5c3e28 (142 bytes) // // 3 xrefs: // > VideoOptionsLayer::onApply @ 0x42212a // > GraphicsReloadLayer::performReload @ 0x422272 // > cocos2d::CCDirector::setupScreenScale @ 0x5c3e5a // // 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 cocos2d::CCDirector::updateContentScale(cocos2d::CCDirector *a1, cocos2d::TextureQuality a2) { float v3; // r1 float m_fContentScaleFactor; // s15 cocos2d::TextureQuality v5; // r3 if ( a2 == kTextureQualityMedium || a2 == kTextureQualityHigh || a2 != kTextureQualityLow && (a1->m_obResolutionInPixels.height >= (float)(a1->m_obScaleFactor.height * 1.5) || a1->m_obResolutionInPixels.width >= (float)(a1->m_obScaleFactor.width * 1.5)) ) { v3 = 2.0; } else { v3 = 1.0; } cocos2d::CCDirector::setContentScaleFactor(a1, v3); m_fContentScaleFactor = a1->m_fContentScaleFactor; if ( m_fContentScaleFactor == 4.0 ) { v5 = kTextureQualityHigh; } else if ( m_fContentScaleFactor == 2.0 ) { v5 = kTextureQualityMedium; } else { if ( m_fContentScaleFactor != 1.0 ) return; v5 = kTextureQualityLow; } a1->m_eTextureQuality = v5; }
GD Web Decomp Icon

GD Web Decomp

Raw Source