// // GJPathPage::onUnlock from 0x1003ba264 to 0x1003ba334 (208 bytes) // // 1 xrefs: // > GJPathPage::init @ 0x1003b9c74 // // 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 __fastcall GJPathPage::onUnlock(GJPathPage *a1, cocos2d::CCObject *a2) { int m_pathNumber; // w20 GameStatsManager *v4; // x0 GJStoreItem *StoreItem; // x20 int random; // w22 int seed; // w23 GameStatsManager *v8; // x21 void **v9; // x1 int Stat; // w21 int v11; // w22 PurchaseItemPopup *v12; // x0 void *__p[2]; // [xsp+8h] [xbp-48h] BYREF char v14; // [xsp+1Fh] [xbp-31h] m_pathNumber = a1->m_pathNumber; v4 = GameStatsManager::sharedState(); StoreItem = GameStatsManager::getStoreItem(v4, m_pathNumber + 5, 12); random = StoreItem->m_price.random; seed = StoreItem->m_price.seed; v8 = GameStatsManager::sharedState(); GJStoreItem::getCurrencyKey((__int64)StoreItem, __p); if ( v14 >= 0 ) v9 = __p; else v9 = (void **)__p[0]; Stat = GameStatsManager::getStat(v8, (const char *)v9); v11 = random - seed; if ( v14 < 0 ) operator delete(__p[0]); if ( v11 <= Stat ) { v12 = PurchaseItemPopup::create(StoreItem); v12->m_delegate = &a1->GJPurchaseDelegate; ((void (__fastcall *)(PurchaseItemPopup *))v12->show)(v12); } else { GJPathPage::showCantAffordMessage(a1, StoreItem); } }
GD Web Decomp Icon

GD Web Decomp

Raw Source