// // GameManager::loadDeathEffect from 0x71669c to 0x716778 (220 bytes) // // 2 xrefs: // > PlayLayer::setupHasCompleted @ 0x707acc // > @ 0x9e1a0 // // 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:52:16 +0000 // _DWORD *__fastcall GameManager::loadDeathEffect(_DWORD *this, int a2) { int v2; // w19 int v3; // w1 _DWORD *v4; // x20 cocos2d::CCString *v5; // x0 cocos2d::CCTextureCache *v6; // x0 cocos2d::CCTextureCache *v7; // x22 cocos2d::CCString *v8; // x0 const char *v9; // x0 cocos2d::CCSpriteFrameCache *v10; // x0 cocos2d::CCSpriteFrameCache *v11; // x22 cocos2d::CCString *v12; // x0 const char *v13; // x0 char *CString; // [xsp+38h] [xbp+38h] if ( a2 <= 0 ) { v2 = 1; } else if ( a2 > 20 ) { v2 = 20; } else { v2 = a2; } v3 = *(this + 249); if ( v2 != v3 ) { v4 = this; if ( v3 > 1 ) { v5 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"PlayerExplosion_%02d.png", (const char *)(unsigned int)(v3 - 1)); CString = (char *)cocos2d::CCString::getCString(v5); v6 = (cocos2d::CCTextureCache *)cocos2d::CCTextureCache::sharedTextureCache((cocos2d::CCTextureCache *)CString); this = (_DWORD *)cocos2d::CCTextureCache::removeTextureForKey(v6, CString); } if ( v2 > 1 ) { v7 = (cocos2d::CCTextureCache *)cocos2d::CCTextureCache::sharedTextureCache((cocos2d::CCTextureCache *)this); v8 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"PlayerExplosion_%02d.png", (const char *)(unsigned int)(v2 - 1)); v9 = (const char *)cocos2d::CCString::getCString(v8); v10 = (cocos2d::CCSpriteFrameCache *)cocos2d::CCTextureCache::addImage(v7, v9, 0); v11 = (cocos2d::CCSpriteFrameCache *)cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(v10); v12 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"PlayerExplosion_%02d.plist", (const char *)(unsigned int)(v2 - 1)); v13 = (const char *)cocos2d::CCString::getCString(v12); this = (_DWORD *)cocos2d::CCSpriteFrameCache::addSpriteFramesWithFile(v11, v13); } v4[249] = v2; } return this; }
GD Web Decomp Icon

GD Web Decomp

Raw Source