// // LevelListLayer::onFavorite from 0x14042f580 to 0x14042f6aa (298 bytes) // // 2 xrefs: // > LevelListLayer::init @ 0x14042c509 // > @ 0x140926bc4 // // This function is hookable on this platform (idp: pc, 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:32:14 +0000 // // Hidden C++ exception states: #wind=2 void __fastcall LevelListLayer::onFavorite(__int64 a1, __int64 a2) { __int64 v3; // r8 char v4; // bp __int64 v5; // rdx __int64 v6; // rcx __int64 *v7; // rsi __int64 v8; // rdi const char *v9; // rbx cocos2d::CCSpriteFrameCache *v10; // rax struct cocos2d::CCSpriteFrame *v11; // rax __int64 v12; // rcx void *v13; // [rsp+40h] [rbp+8h] void *v14; // [rsp+40h] [rbp+8h] if ( !*(_BYTE *)(a1 + 968) ) { v3 = *(_QWORD *)(a1 + 920); v4 = *(_BYTE *)(v3 + 396); *(_BYTE *)(v3 + 396) = v4 == 0; v7 = (__int64 *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a2 + 952LL))(a2); v8 = *v7; v9 = "gj_heartOff_001.png"; if ( !v4 ) v9 = "gj_heartOn_001.png"; v10 = (cocos2d::CCSpriteFrameCache *)cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(v6, v5); v11 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v10, v9); (*(void (__fastcall **)(__int64 *, struct cocos2d::CCSpriteFrame *))(v8 + 1008))(v7, v11); v12 = *(_QWORD *)&qword_14090BFB0; if ( v4 ) { if ( !*(_QWORD *)&qword_14090BFB0 ) { v14 = operator new(0x690u); *(_QWORD *)&qword_14090BFB0 = GameLevelManager::GameLevelManager((__int64)v14); (*(void (__fastcall **)(_QWORD))(**(_QWORD **)&qword_14090BFB0 + 72LL))(*(_QWORD *)&qword_14090BFB0); v12 = *(_QWORD *)&qword_14090BFB0; } GameLevelManager::deleteLevelList(v12, *(unsigned int **)(a1 + 920)); } else { if ( !*(_QWORD *)&qword_14090BFB0 ) { v13 = operator new(0x690u); *(_QWORD *)&qword_14090BFB0 = GameLevelManager::GameLevelManager((__int64)v13); (*(void (__fastcall **)(_QWORD))(**(_QWORD **)&qword_14090BFB0 + 72LL))(*(_QWORD *)&qword_14090BFB0); v12 = *(_QWORD *)&qword_14090BFB0; } GameLevelManager::saveLevelList(v12, *(_QWORD *)(a1 + 920)); } } }
GD Web Decomp Icon

GD Web Decomp

Raw Source