// // LevelListLayer::onFavorite from 0x1002e1e28 to 0x1002e1ed8 (176 bytes) // // 1 xrefs: // > LevelListLayer::init @ 0x1002e1620 // // This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True! // // Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings // Generated at Fri, 27 Nov 2026 11:02:48 +0000 // void __fastcall LevelListLayer::onFavorite(__int64 a1, __int64 a2) { __int64 v3; // x8 int v4; // w21 __int64 v5; // x20 __int64 v6; // x0 const char *v7; // x1 __int64 v8; // x0 __int64 v9; // x0 __int64 v10; // x1 if ( (*(_BYTE *)(a1 + 952) & 1) == 0 ) { v3 = *(_QWORD *)(a1 + 912); v4 = *(unsigned __int8 *)(v3 + 396); *(_BYTE *)(v3 + 396) = v4 ^ 1; v5 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a2 + 1072LL))(a2); v6 = cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(v5); if ( v4 ) v7 = "gj_heartOff_001.png"; else v7 = "gj_heartOn_001.png"; v8 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v6, v7); (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v5 + 1160LL))(v5, v8); v9 = GameLevelManager::sharedState(); v10 = *(_QWORD *)(a1 + 912); if ( (v4 & 1) != 0 ) GameLevelManager::deleteLevelList(v9, v10); else GameLevelManager::saveLevelList(v9, v10); } }
GD Web Decomp Icon

GD Web Decomp

Raw Source