// // GameManager::loadIconAsync from 0x41d8a0 to 0x41d980 (224 bytes) // // 1 xrefs: // > SimplePlayer::asyncLoadIcon @ 0x50ce2c // // This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False! // // 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:47:59 +0000 // int __fastcall GameManager::loadIconAsync(int **this, int a2, int a3, int a4, cocos2d::CCObject *a5) { int v8; // r3 cocos2d::CCTextureCache *v9; // r0 int v10; // lr char *v11; // r1 int v13[3]; // [sp+10h] [bp-2Ch] BYREF _BYTE v14[4]; // [sp+1Ch] [bp-20h] BYREF int v15; // [sp+20h] [bp-1Ch] int v16[3]; // [sp+28h] [bp-14h] BYREF GameManager::sheetNameForIcon((GameManager *)v14, (int)this, a2, a3); if ( (v14[0] & 1) != 0 ) v8 = v15; else v8 = (int)v14[0] >> 1; if ( v8 ) { v13[0] = GameManager::keyForIcon((GameManager *)this, a2, a3); GameManager::addIconDelegate(this, a5, v13[0]); if ( !*(_BYTE *)std::map::operator[](this + 237, v13) ) { *(_BYTE *)std::map::operator[](this + 237, v13) = 1; std::string::basic_string(v16, (int)v14); v9 = (cocos2d::CCTextureCache *)std::string::append(v16, ".png"); v10 = cocos2d::CCTextureCache::sharedTextureCache(v9); v13[2] = 0; if ( (v16[0] & 1) != 0 ) v11 = (char *)v16[2]; else v11 = (char *)v16 + 1; v13[1] = (int)GameManager::finishedLoadingIconAsync; cocos2d::CCTextureCache::addImageAsync( v10, v11, (int)this, (int)GameManager::finishedLoadingIconAsync, 0, v13[0], 0); std::string::~string((int)v16); } } return std::string::~string((int)v14); }
GD Web Decomp Icon

GD Web Decomp

Raw Source