// // GameStatsManager::toggleEnableItem from 0x7b95f0 to 0x7b972c (316 bytes) // // 3 xrefs: // > GJGarageLayer::onToggleItem @ 0x793388 // > GameOptionsLayer::onPracticeMusicSync @ 0x8d5d58 // > @ 0xa46b8 // // 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 GameStatsManager::toggleEnableItem(GameStatsManager *a1, UnlockType a2, int a3, bool a4) { _BOOL4 v4; // w22 cocos2d::CCDictionary *m_enabledItems; // x21 cocos2d::CCObject *v7; // x0 stl::StringData::Internal *m_data; // x2 char *v9; // x0 unsigned int *v10; // x2 int v11; // w1 std::string v12; // [xsp+40h] [xbp+40h] BYREF v4 = a4; GameStatsManager::getItemKey(a1, a3, a2, (__int64)&v12); if ( v4 ) { m_enabledItems = a1->m_enabledItems; v7 = (cocos2d::CCObject *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"%i", (const char *)&dword_0 + 1); cocos2d::CCDictionary::setObject((int)m_enabledItems, v7); m_data = v12.m_data.m_data; v9 = (char *)v12.m_data.m_data - 24; if ( (__int64 *)v12.m_data.m_data - 3 == &qword_124B6B0 ) return; } else { cocos2d::CCDictionary::removeObjectForKey(a1->m_enabledItems, &v12); m_data = v12.m_data.m_data; v9 = (char *)v12.m_data.m_data - 24; if ( (__int64 *)v12.m_data.m_data - 3 == &qword_124B6B0 ) return; } if ( &pthread_create ) { v10 = (unsigned int *)((char *)m_data - 8); do v11 = __ldaxr(v10); while ( __stlxr(v11 - 1, v10) ); } else { v11 = *((_DWORD *)m_data - 2); *((_DWORD *)m_data - 2) = v11 - 1; } if ( v11 <= 0 ) operator delete(v9); }
GD Web Decomp Icon

GD Web Decomp

Raw Source