// // LevelInfoLayer::onFavorite from 0x7e53c8 to 0x7e5458 (144 bytes) // // 3 xrefs: // > @ 0xb0938 // > LevelInfoLayer::init @ 0x7eb928 // > @ 0x1545060 // // 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 12:54:28 +0000 // __int64 __fastcall LevelInfoLayer::onFavorite(__int64 this, cocos2d::CCObject *a2) { __int64 v2; // x2 int v3; // w19 cocos2d::CCSpriteFrameCache **v4; // x20 __int64 (__fastcall *v5)(cocos2d::CCSpriteFrameCache **, __int64); // x21 cocos2d::CCSpriteFrameCache *v6; // x0 const char *v7; // x1 __int64 v8; // x0 if ( !*(_BYTE *)(this + 488) ) { v2 = *(_QWORD *)(this + 504); v3 = *(unsigned __int8 *)(v2 + 912) ^ 1; *(_BYTE *)(v2 + 912) ^= 1u; v4 = (cocos2d::CCSpriteFrameCache **)(*(__int64 (__fastcall **)(cocos2d::CCObject *))(*(_QWORD *)a2 + 1072LL))(a2); v5 = *((__int64 (__fastcall **)(cocos2d::CCSpriteFrameCache **, __int64))*v4 + 145); v6 = (cocos2d::CCSpriteFrameCache *)cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(*v4); if ( v3 ) v7 = "gj_heartOn_001.png"; else v7 = "gj_heartOff_001.png"; v8 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v6, v7); return v5(v4, v8); } return this; }
GD Web Decomp Icon

GD Web Decomp

Raw Source