// // SecretRewardsLayer::updateUnlockedGoldLabel from 0x585dd0 to 0x585e68 (152 bytes) // // 2 xrefs: // > SecretRewardsLayer::init @ 0x586d5a // > SecretRewardsLayer::onGoldChest @ 0x58746e // // 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 SecretRewardsLayer::updateUnlockedGoldLabel(SecretRewardsLayer *a1) { GameStatsManager *v2; // r0 const char *v3; // r7 GameStatsManager *v4; // r0 int v5; // r0 cocos2d::CCSprite *m_goldPriceSprite; // r8 bool (__fastcall *isCascadeOpacityEnabled)(cocos2d::CCNodeRGBA *__hidden); // r9 int v8; // r6 cocos2d::CCString *v9; // r0 const char *CString; // r0 cocos2d::CCSprite *v11; // r0 cocos2d::CCSprite_vtbl *v12; // r3 cocos2d::CCTexture2D *(__fastcall *v13)(cocos2d::CCSprite *__hidden); // r2 cocos2d::CCTexture2D *(__fastcall *getTexture)(cocos2d::CCSprite *__hidden); // r3 _DWORD v15[3]; // [sp+0h] [bp-Ch] BYREF v15[0] = a1; v2 = GameStatsManager::sharedState(); v3 = (const char *)GameStatsManager::countUnlockedSecretChests(v2, Gold); v4 = GameStatsManager::sharedState(); v5 = GameStatsManager::countSecretChests(v4, Gold); m_goldPriceSprite = a1->m_goldPriceSprite; isCascadeOpacityEnabled = m_goldPriceSprite->isCascadeOpacityEnabled; v8 = v5; v9 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"%i / %i", v3, v5, m_goldPriceSprite->cocos2d::CCNodeRGBA::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable, v15[0], v15[1], v15[2]); CString = cocos2d::CCString::getCString(v9); ((void (__fastcall *)(cocos2d::CCSprite *, const char *))isCascadeOpacityEnabled)(m_goldPriceSprite, CString); v11 = a1->m_goldPriceSprite; v12 = v11->cocos2d::CCNodeRGBA::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable; if ( (int)v3 < v8 ) { getTexture = v12->getTexture; qmemcpy(v15, "dWp", 3); getTexture(v11); } else { v13 = v12->getTexture; LOWORD(v15[0]) = -206; BYTE2(v15[0]) = 50; v13(v11); } }
GD Web Decomp Icon

GD Web Decomp

Raw Source