// // GameLevelManager::updateSavedLevelList from 0x72efc0 to 0x72f128 (360 bytes) // // 3 xrefs: // > LevelListCell::onClick @ 0x60ad9c // > GameLevelManager::onGetLevelListsCompleted @ 0x730240 // > @ 0x60870 // // 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 GameLevelManager::updateSavedLevelList(GameLevelManager *a1, GJLevelList *a2) { GameLevelManager *v3; // x0 GJLevelList *SavedLevelList; // x0 __int64 v5; // x19 int m_listVersion; // w7 int m_downloads; // w6 int m_likes; // w5 int m_difficulty; // w4 int m_accountID; // w3 int m_uploadDate; // w1 void *v12; // x0 unsigned int *v13; // x2 int v14; // w1 __int64 v15; // [xsp+40h] [xbp+40h] BYREF v3 = GameLevelManager::sharedState(); SavedLevelList = GameLevelManager::getSavedLevelList(v3, a2->m_listID); v5 = (__int64)SavedLevelList; if ( SavedLevelList ) { m_listVersion = a2->m_listVersion; m_downloads = a2->m_downloads; m_likes = a2->m_likes; m_difficulty = a2->m_difficulty; m_accountID = a2->m_accountID; SavedLevelList->m_featured = a2->m_featured; SavedLevelList->m_listVersion = m_listVersion; SavedLevelList->m_downloads = m_downloads; SavedLevelList->m_likes = m_likes; SavedLevelList->m_difficulty = m_difficulty; SavedLevelList->m_accountID = m_accountID; sub_D18EA8(&SavedLevelList->m_creatorName, &a2->m_creatorName); sub_D18EA8(v5 + 408, &a2->m_listName); sub_D18EA8(v5 + 432, &a2->m_listDesc); m_uploadDate = a2->m_uploadDate; *(_DWORD *)(v5 + 444) = a2->m_updateDate; *(_DWORD *)(v5 + 440) = m_uploadDate; sub_D18D28(&v15); GJLevelList::parseListLevels(v5, &v15); v12 = (void *)(v15 - 24); if ( (__int64 *)(v15 - 24) != &qword_124B6B0 ) { if ( &pthread_create ) { v13 = (unsigned int *)(v15 - 8); do v14 = __ldaxr(v13); while ( __stlxr(v14 - 1, v13) ); } else { v14 = *(_DWORD *)(v15 - 8); *(_DWORD *)(v15 - 8) = v14 - 1; } if ( v14 <= 0 ) operator delete(v12); } } }
GD Web Decomp Icon

GD Web Decomp

Raw Source