// // cocos2d::CCTileMapAtlas::loadTGAfile from 0xb3deb8 to 0xb3df84 (204 bytes) // // 2 xrefs: // > cocos2d::CCTileMapAtlas::initWithTileFile @ 0xb3dfc0 // > @ 0x401d0 // // This function is hookable on this platform! // // Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings // void cocos2d::CCTileMapAtlas::loadTGAfile(cocos2d::CCTileMapAtlas *a1, const char *a2) { cocos2d::CCFileUtils *v3; // x0 const char *v4; // x1 char *v5; // x0 unsigned int *v6; // x2 int v7; // w1 cocos2d *v9; // [xsp+40h] [xbp+40h] BYREF v3 = cocos2d::CCFileUtils::sharedFileUtils(); ((void (__fastcall *)(cocos2d **__return_ptr, cocos2d::CCFileUtils *, const char *, _QWORD))v3->createCCArrayWithContentsOfFile)( &v9, v3, a2, 0); a1->m_pTGAInfo = (cocos2d::sImageTGA *)cocos2d::tgaLoad(v9, v4); v5 = (char *)v9 - 24; if ( (__int64 *)((char *)v9 - 24) != &qword_124B6B0 ) { if ( &pthread_create ) { v6 = (unsigned int *)((char *)v9 - 8); do v7 = __ldaxr(v6); while ( __stlxr(v7 - 1, v6) ); } else { v7 = *((_DWORD *)v9 - 2); *((_DWORD *)v9 - 2) = v7 - 1; } if ( v7 <= 0 ) operator delete(v5); } }
GD Web Decomp Icon

GD Web Decomp

Raw Source