// // GJMGLayer::updateGroundWidth from 0x7ed2b4 to 0x7ed3c4 (272 bytes) // // 2 xrefs: // > GJMGLayer::scaleGround @ 0x7ed420 // > @ 0x6bc58 // // 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 GJMGLayer::updateGroundWidth(GJMGLayer *a1, bool a2) { cocos2d::CCDirector *v3; // x0 __int64 v4; // x0 GJMGLayer_vtbl *v5; // x1 float v6; // s0 bool v7; // zf float v8; // s1 int v9; // w20 __int64 v10; // x0 float v11; // [xsp+30h] [xbp+30h] cocos2d::CCSize WinSize; // 0:kr00_8.8 if ( a1->getParent(a1) ) { v3 = cocos2d::CCDirector::sharedDirector(); WinSize = cocos2d::CCDirector::getWinSize(v3); v4 = ((__int64 (__fastcall *)(GJMGLayer *, float, float))a1->getParent)(a1, WinSize.width, WinSize.height); v5 = a1->cocos2d::CCLayer::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable; if ( v4 ) { v5->getScaleX(a1); } else { v10 = (__int64)v5->getParent(a1); (*(void (__fastcall **)(__int64))(*(_QWORD *)v10 + 168LL))(v10); } v6 = a1->getScaleX(a1); v7 = !a1->m_cameraRotated; v8 = (float)((float)(v11 / v6) + 10.0) / a1->m_textureWidth; a1->m_groundWidth = (float)(v11 / v6) + 10.0; v9 = (int)(float)(ceilf(v8) + 1.0); if ( !v7 ) ++v9; GJMGLayer::loadGroundSprites(a1, v9, 1); GJMGLayer::loadGroundSprites(a1, v9, 0); } }
GD Web Decomp Icon

GD Web Decomp

Raw Source