// // GJGarageLayer::updateRate from 0x78fa64 to 0x78fc20 (444 bytes) // // 3 xrefs: // > `non-virtual thunk to'GJGarageLayer::updateRate @ 0x78fc24 // > @ 0xb9e50 // > @ 0x1178aa8 // // 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 GJGarageLayer::updateRate(GJGarageLayer *a1) { cocos2d::CCString *v2; // x0 const char *CString; // x25 cocos2d::CCString *v4; // x0 const char *v5; // x23 cocos2d::CCSprite *m_supporter; // x22 void (__fastcall *setDisplayFrame)(cocos2d::CCSprite *__hidden, cocos2d::CCSpriteFrame *); // x24 cocos2d::CCSpriteFrameCache *v8; // x0 cocos2d::CCSpriteFrame *v9; // x0 cocos2d::CCSprite *v10; // x22 void (__fastcall *setPosition)(cocos2d::CCSprite *__hidden, const cocos2d::CCPoint *); // x23 cocos2d::CCSprite *v12; // x0 void (__fastcall *setColor)(cocos2d::CCSprite *__hidden, const cocos2d::ccColor3B *); // x3 void (__fastcall *v14)(cocos2d::CCSprite *__hidden, const cocos2d::ccColor3B *); // x3 cocos2d::CCNode *m_unknown; // x0 cocos2d::CCPoint v16; // [xsp+50h] [xbp+50h] BYREF if ( GameManager::sharedState()->m_ratedGame && a1->m_supporter ) { v2 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"player_%02d_001.png", &byte_9[4]); CString = cocos2d::CCString::getCString(v2); v4 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"player_%02d_2_001.png", &byte_9[4]); v5 = cocos2d::CCString::getCString(v4); a1->m_supporter->removeAllChildrenWithCleanup(a1->m_supporter, 1); m_supporter = a1->m_supporter; setDisplayFrame = m_supporter->setDisplayFrame; v8 = cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(); v9 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v8, CString); setDisplayFrame(m_supporter, v9); v10 = cocos2d::CCSprite::createWithSpriteFrameName(v5); a1->m_supporter->addChild_0(a1->m_supporter, v10, -1); setPosition = v10->setPosition; cocos2d::CCPoint::CCPoint( &v16, a1->m_supporter->m_obRect.size.width * 0.5, a1->m_supporter->m_obRect.size.height * 0.5); setPosition(v10, &v16); v12 = a1->m_supporter; setColor = v12->setColor; LOWORD(v16.x) = -20561; BYTE2(v16.x) = -81; setColor(v12, (const cocos2d::ccColor3B *)&v16); v14 = v10->setColor; LOWORD(v16.x) = -1; BYTE2(v16.x) = -1; v14(v10, (const cocos2d::ccColor3B *)&v16); GameManager::sharedState()->m_gameRateDelegate1 = nullptr; } if ( GameManager::sharedState()->m_clickedFacebook ) { m_unknown = a1->m_unknown; if ( m_unknown ) { m_unknown->removeAllChildrenWithCleanup(m_unknown, 1); GameManager::sharedState()->m_gameRateDelegate1 = nullptr; } } }
GD Web Decomp Icon

GD Web Decomp

Raw Source