// // GameManager::removeCustomObject from 0x5ed5e0 to 0x5ed6e8 (264 bytes) // // 2 xrefs: // > EditorUI::onDeleteCustomItem @ 0x69797c // > @ 0x8acf0 // // 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 // // local variable allocation has failed, the output may be wrong! void GameManager::removeCustomObject(GameManager *a1, int a2) { cocos2d::CCString *v3; // x0 char *CString; // x0 cocos2d::CCDictionary *m_customObjectDict; // x21 char *v6; // x0 unsigned int *v7; // x2 int v8; // w1 std::string v9; // [xsp+40h] [xbp+40h] BYREF v3 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"%i", *(const char **)&a2); CString = (char *)cocos2d::CCString::getCString(v3); m_customObjectDict = a1->m_customObjectDict; sub_D153B8((int)&v9, CString); cocos2d::CCDictionary::removeObjectForKey(m_customObjectDict, &v9); v6 = (char *)v9.m_data.m_data - 24; if ( (__int64 *)v9.m_data.m_data - 3 != &qword_124B6B0 ) { if ( &pthread_create ) { v7 = (unsigned int *)((char *)v9.m_data.m_data - 8); do v8 = __ldaxr(v7); while ( __stlxr(v8 - 1, v7) ); } else { v8 = *((_DWORD *)v9.m_data.m_data - 2); *((_DWORD *)v9.m_data.m_data - 2) = v8 - 1; } if ( v8 <= 0 ) operator delete(v6); } }
GD Web Decomp Icon

GD Web Decomp

Raw Source