// // GJMGLayer::updateGroundWidth from 0x10002d000 to 0x10002d0e8 (232 bytes) // // 1 xrefs: // > GJMGLayer::scaleGround @ 0x10002cfe4 // // 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 // // local variable allocation has failed, the output may be wrong! void __fastcall GJMGLayer::updateGroundWidth(GJMGLayer *a1, bool a2) { cocos2d::CCDirector *v3; // x0 __int64 v4; // x0 GJMGLayer_vtbl *v5; // x8 void (__fastcall **p_getScaleX)(GJMGLayer *); // x8 GJMGLayer *v7; // x0 float v8; // s0 int v9; // w20 _BOOL4 m_cameraRotated; // w21 float v11; // [xsp+8h] [xbp-28h] cocos2d::CCSize WinSize; // 0:kr00_8.8 if ( ((__int64 (__fastcall *)(GJMGLayer *, bool))a1->getParent)(a1, a2) ) { 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 ) { p_getScaleX = (void (__fastcall **)(GJMGLayer *))&v5->getScaleX; v7 = a1; } else { v7 = (GJMGLayer *)((__int64 (__fastcall *)(GJMGLayer *))v5->getParent)(a1); p_getScaleX = (void (__fastcall **)(GJMGLayer *))&v7->getScale; } (*p_getScaleX)(v7); v8 = (float)(v11 / ((float (__fastcall *)(GJMGLayer *))a1->getScaleX)(a1)) + 10.0; a1->m_groundWidth = v8; v9 = (int)(float)(ceilf(v8 / a1->m_textureWidth) + 1.0); m_cameraRotated = a1->m_cameraRotated; GJMGLayer::loadGroundSprites(a1, v9 + m_cameraRotated, 1); GJMGLayer::loadGroundSprites(a1, v9 + m_cameraRotated, 0); } }
GD Web Decomp Icon

GD Web Decomp

Raw Source