// // GJGarageLayer::onToggleItem from 0x403db0 to 0x403e26 (118 bytes) // // 0 xrefs: // // 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; // r0 IconType m_uID; // r8 int v6; // r6 GameManager *v7; // r0 UnlockType v8; // r7 GameManager *v9; // r0 GameStatsManager *v10; // r0 bool v11; // r5 GameStatsManager *v12; // r0 GJItemIcon *v13; // r0 v4 = a2->getTag(a2); m_uID = a2[7].m_uID; v6 = v4; v7 = GameManager::sharedState(); v8 = GameManager::iconTypeToUnlockType(v7, m_uID); v9 = GameManager::sharedState(); if ( GameManager::isIconUnlocked(v9, v6, m_uID) ) { v10 = GameStatsManager::sharedState(); v11 = !GameStatsManager::isItemEnabled(v10, v8, v6); v12 = GameStatsManager::sharedState(); GameStatsManager::toggleEnableItem(v12, v8, v6, v11); v13 = (GJItemIcon *)((int (__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