// // cocos2d::CCTileMapAtlas::loadTGAfile from 0x1800ab340 to 0x1800ab3ef (175 bytes) // // 3 xrefs: // > cocos2d::CCTileMapAtlas::initWithTileFile @ 0x1800ab26b // > @ 0x1801438a8 // > @ 0x1801b8058 // // 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 // // Hidden C++ exception states: #wind=1 void __fastcall cocos2d::CCTileMapAtlas::loadTGAfile(cocos2d::CCTileMapAtlas *this, const char *a2) { struct cocos2d::CCFileUtils *v4; // rax void **v5; // rcx void *v6; // rcx void *Block[3]; // [rsp+20h] [rbp-38h] BYREF unsigned __int64 v8; // [rsp+38h] [rbp-20h] v4 = cocos2d::CCFileUtils::sharedFileUtils(); ((void (__fastcall *)(struct cocos2d::CCFileUtils *, void **, const char *, _QWORD))v4->createCCArrayWithContentsOfFile)( v4, Block, a2, 0); v5 = Block; if ( v8 > 0xF ) v5 = (void **)Block[0]; this->m_pTGAInfo = (cocos2d::sImageTGA *)sub_18009E3D0((__int64)v5); if ( v8 > 0xF ) { v6 = Block[0]; if ( v8 + 1 >= 0x1000 ) { v6 = *((void **)Block[0] - 1); if ( (unsigned __int64)((char *)Block[0] - (char *)v6 - 8) > 0x1F ) invalid_parameter_noinfo_noreturn(); } j_j_free_0(v6); } }
GD Web Decomp Icon

GD Web Decomp

Raw Source