// // GJGarageLayer::onToggleItem from 0x793304 to 0x7933e0 (220 bytes) // // 3 xrefs: // > @ 0xc2850 // > GJGarageLayer::setupSpecialPage @ 0x797294 // > @ 0x122ebe8 // // 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::onToggleItem(GJGarageLayer *a1, cocos2d::CCObject *a2) { int v4; // w0 IconType m_nTag; // w21 int v6; // w20 GameManager *v7; // x0 UnlockType v8; // w22 GameManager *v9; // x0 GameStatsManager *v10; // x0 bool v11; // w21 GameStatsManager *v12; // x0 GJItemIcon *v13; // x0 v4 = a2->getTag(a2); m_nTag = a2[8].m_nTag; v6 = v4; v7 = GameManager::sharedState(); v8 = GameManager::iconTypeToUnlockType(v7, m_nTag); v9 = GameManager::sharedState(); if ( GameManager::isIconUnlocked(v9, v6, m_nTag) ) { v10 = GameStatsManager::sharedState(); v11 = !GameStatsManager::isItemEnabled(v10, v8, v6); v12 = GameStatsManager::sharedState(); GameStatsManager::toggleEnableItem(v12, v8, v6, v11); v13 = (GJItemIcon *)((__int64 (__fastcall *)(cocos2d::CCObject *))a2->__vftable[13].~CCObject_0)(a2); GJItemIcon::toggleEnabledState(v13, v11); } else { a1->showUnlockPopup(a1, v6, v8); } }
GD Web Decomp Icon

GD Web Decomp

Raw Source