// // SecretRewardsLayer::updateUnlockedGoldLabel from 0xa62214 to 0xa62320 (268 bytes) // // 3 xrefs: // > SecretRewardsLayer::init @ 0xa6340c // > SecretRewardsLayer::onGoldChest @ 0xa645f4 // > @ 0x5db58 // // 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; // x0 int v3; // w22 GameStatsManager *v4; // x0 unsigned int v5; // w0 cocos2d::CCSprite *m_goldPriceSprite; // x23 signed int v7; // w21 bool (__fastcall *isCascadeOpacityEnabled)(cocos2d::CCNodeRGBA *__hidden); // x24 cocos2d::CCString *v9; // x0 const char *CString; // x0 cocos2d::CCSprite *v11; // x0 cocos2d::CCTexture2D *(__fastcall *v12)(cocos2d::CCSprite *__hidden); // x2 cocos2d::CCTexture2D *(__fastcall *getTexture)(cocos2d::CCSprite *__hidden); // x3 _BYTE v14[8]; // [xsp+40h] [xbp+40h] BYREF v2 = GameStatsManager::sharedState(); v3 = GameStatsManager::countUnlockedSecretChests(v2, Gold); v4 = GameStatsManager::sharedState(); v5 = GameStatsManager::countSecretChests(v4, Gold); m_goldPriceSprite = a1->m_goldPriceSprite; v7 = v5; isCascadeOpacityEnabled = m_goldPriceSprite->isCascadeOpacityEnabled; v9 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"%i / %i", (const char *)(unsigned int)v3, v5); CString = cocos2d::CCString::getCString(v9); ((void (__fastcall *)(cocos2d::CCSprite *, const char *))isCascadeOpacityEnabled)(m_goldPriceSprite, CString); v11 = a1->m_goldPriceSprite; if ( v3 >= v7 ) { getTexture = v11->getTexture; v14[0] = 50; v14[1] = -1; v14[2] = 50; ((void (__fastcall *)(cocos2d::CCSprite *, _BYTE *))getTexture)(v11, v14); } else { v12 = v11->getTexture; qmemcpy(v14, "dWp", 3); ((void (__fastcall *)(cocos2d::CCSprite *, _BYTE *))v12)(v11, v14); } }
GD Web Decomp Icon

GD Web Decomp

Raw Source