// // cocos2d::CCDirector::updateContentScale from 0xd4a500 to 0xd4a5dc (220 bytes) // // 4 xrefs: // > VideoOptionsLayer::onApply @ 0x8f0eb4 // > GraphicsReloadLayer::performReload @ 0x8f3094 // > cocos2d::CCDirector::setupScreenScale @ 0xd4a63c // > @ 0x98998 // // This function is hookable on this platform (idp: arm, 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 13:07:37 +0000 // void __fastcall cocos2d::CCDirector::updateContentScale(cocos2d::CCDirector *this, int a2) { float v3; // s0 if ( a2 == 2 || a2 == 3 || a2 != 1 && (*((float *)this + 99) >= (float)(*((float *)this + 97) * 1.5) || *((float *)this + 98) >= (float)(*((float *)this + 96) * 1.5)) ) { cocos2d::CCDirector::setContentScaleFactor(this, 2.0); v3 = *((float *)this + 82); if ( v3 != 4.0 ) goto LABEL_7; LABEL_13: *((_DWORD *)this + 100) = 3; return; } cocos2d::CCDirector::setContentScaleFactor(this, 1.0); v3 = *((float *)this + 82); if ( v3 == 4.0 ) goto LABEL_13; LABEL_7: if ( v3 == 2.0 ) { *((_DWORD *)this + 100) = (unsigned int)&dword_0 + 2; } else if ( v3 == 1.0 ) { *((_DWORD *)this + 100) = 1; } }
GD Web Decomp Icon

GD Web Decomp

Raw Source