// // cocos2d::CCDirector::updateContentScale from 0xad791c to 0xad79f8 (220 bytes) // // 4 xrefs: // > VideoOptionsLayer::onApply @ 0x7c7d24 // > GraphicsReloadLayer::performReload @ 0x7c7f3c // > cocos2d::CCDirector::setupScreenScale @ 0xad7a58 // > @ 0x71658 // // 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 m_fContentScaleFactor; // s0 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)) ) { cocos2d::CCDirector::setContentScaleFactor(a1, 2.0); m_fContentScaleFactor = a1->m_fContentScaleFactor; if ( m_fContentScaleFactor != 4.0 ) goto LABEL_7; LABEL_13: a1->m_eTextureQuality = kTextureQualityHigh; return; } cocos2d::CCDirector::setContentScaleFactor(a1, 1.0); m_fContentScaleFactor = a1->m_fContentScaleFactor; if ( m_fContentScaleFactor == 4.0 ) goto LABEL_13; LABEL_7: if ( m_fContentScaleFactor == 2.0 ) { a1->m_eTextureQuality = (unsigned int)&dword_0 + 2; } else if ( m_fContentScaleFactor == 1.0 ) { a1->m_eTextureQuality = kTextureQualityLow; } }
GD Web Decomp Icon

GD Web Decomp

Raw Source