// // LevelLeaderboard::deleteLocalScores from 0x1003db920 to 0x1003dba4c (300 bytes) // // 2 xrefs: // > LevelLeaderboard::FLAlert_Clicked @ 0x1003dba9e // > sub_1003DBAB0 @ 0x1003dbae5 // // 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 __fastcall LevelLeaderboard::deleteLocalScores(LevelLeaderboard *a1) { GJGameLevel *m_level; // rax GJGameLevel *v2; // rax __int64 v3; // rbx cocos2d::CCObject *v4; // rax __int128 v5; // [rsp+0h] [rbp-40h] BYREF void *__p; // [rsp+10h] [rbp-30h] void *v7[5]; // [rsp+18h] [rbp-28h] BYREF m_level = a1->m_level; if ( (m_level->m_localBestTimes.m_data.m_short.sizex2 & 1) != 0 ) { *m_level->m_localBestTimes.m_data.m_long.longStorage = 0; m_level->m_localBestTimes.m_data.m_long.size = 0; v2 = a1->m_level; if ( (v2->m_localBestPoints.m_data.m_short.sizex2 & 1) != 0 ) goto LABEL_3; } else { *(_WORD *)&m_level->m_localBestTimes.m_data.m_short.sizex2 = 0; v2 = a1->m_level; if ( (v2->m_localBestPoints.m_data.m_short.sizex2 & 1) != 0 ) { LABEL_3: *v2->m_localBestPoints.m_data.m_long.longStorage = 0; v2->m_localBestPoints.m_data.m_long.size = 0; goto LABEL_6; } } *(_WORD *)&v2->m_localBestPoints.m_data.m_short.sizex2 = 0; LABEL_6: v3 = ((__int64 (__fastcall *)(LevelLeaderboard *))a1->getParent)(a1); ((void (__fastcall *)(LevelLeaderboard *, _QWORD))a1->setKeypadEnabled)(a1, 0); ((void (__fastcall *)(LevelLeaderboard *, __int64))a1->removeFromParentAndCleanup)(a1, 1); if ( v3 ) { strcpy((char *)v7, "&Local scores reset."); LOWORD(v5) = 0; v4 = TextAlertPopup::create((__int64)v7, 0x96u, &v5, (__m128)0x3F800000u, 0.60000002); (*(void (__fastcall **)(__int64, cocos2d::CCObject *, __int64))(*(_QWORD *)v3 + 448LL))(v3, v4, 100); if ( (v5 & 1) != 0 ) operator delete(__p); if ( ((__int64)v7[0] & 1) != 0 ) operator delete(v7[2]); } }
GD Web Decomp Icon

GD Web Decomp

Raw Source