// // cocos2d::CCDirector::updateContentScale from 0x100175c84 to 0x100175d14 (144 bytes) // // 2 xrefs: // > VideoOptionsLayer::onApply @ 0x1000f0ec8 // > cocos2d::CCDirector::setupScreenScale @ 0x100175bbc // // 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::updateContentScale(cocos2d::CCDirector *a1, cocos2d::TextureQuality a2) { cocos2d::TextureQuality v2; // w8 if ( a2 != kTextureQualityLow && (a2 == kTextureQualityMedium || a2 == kTextureQualityHigh || a1->m_obResolutionInPixels.height >= (float)(a1->m_obScaleFactor.height * 1.5) || a1->m_obResolutionInPixels.width >= (float)(a1->m_obScaleFactor.width * 1.5)) ) { if ( a1->m_fContentScaleFactor != 2.0 ) a1->m_fContentScaleFactor = 2.0; v2 = kTextureQualityMedium; } else { if ( a1->m_fContentScaleFactor != 1.0 ) a1->m_fContentScaleFactor = 1.0; v2 = kTextureQualityLow; } a1->m_eTextureQuality = v2; }
GD Web Decomp Icon

GD Web Decomp

Raw Source