// // GJMoreGamesLayer::getMoreGamesList from 0x42b280 to 0x42b3e2 (354 bytes) // // 1 xrefs: // > GJMoreGamesLayer::customSetup @ 0x42b410 // // 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 // cocos2d::CCArray *GJMoreGamesLayer::getMoreGamesList(GJMoreGamesLayer *a1) { cocos2d::CCTexture2DPixelFormat v1; // r11 cocos2d::CCArray *v2; // r0 cocos2d::CCArray *v3; // r10 char *i; // r9 char *v5; // r0 cocos2d::CCString *v6; // r0 char *CString; // r0 int v8; // r1 int v9; // r2 int v10; // r3 const std::string *v11; // r1 cocos2d::CCObject *v12; // r0 cocos2d::CCTextureCache *v13; // r0 int doesFileExist; // [sp+Ch] [bp-14h] int v16; // [sp+10h] [bp-10h] BYREF char *v17; // [sp+14h] [bp-Ch] BYREF char *v18; // [sp+18h] [bp-8h] BYREF char *v19; // [sp+1Ch] [bp-4h] BYREF char *v20; // [sp+20h] [bp+0h] BYREF char *v21; // [sp+24h] [bp+4h] int v22; // [sp+28h] [bp+8h] v1 = cocos2d::CCTexture2D::defaultAlphaPixelFormat(); cocos2d::CCTexture2D::setDefaultAlphaPixelFormat(kCCTexture2DPixelFormat_RGBA8888); v20 = nullptr; v21 = nullptr; v22 = 0; v3 = (cocos2d::CCArray *)cocos2d::CCArray::create(v2); sub_776584((int)&v16, "gjm"); std::vector::emplace_back((int)&v20, &v16); sub_774008(&v16); sub_776584((int)&v17, "gjw"); std::vector::emplace_back((int)&v20, &v17); sub_774008(&v17); sub_776584((int)&v18, "gjz"); std::vector::emplace_back((int)&v20, &v18); sub_774008(&v18); for ( i = v20; i != v21; i += 4 ) { sub_775C20(&v17); v18 = (char *)&unk_ACDDA8; if ( PlatformToolbox::isHD() ) v5 = "promo_%s-hd.png"; else v5 = "promo_%s.png"; v6 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)v5, v17); CString = (char *)cocos2d::CCString::getCString(v6); sub_7753D4((int)&v18, CString); sub_776584((int)&v19, v18); doesFileExist = PlatformToolbox::doesFileExist(&v19, v8, v9, v10); sub_774008(&v19); if ( doesFileExist ) { v12 = (cocos2d::CCObject *)cocos2d::CCString::create((cocos2d::CCString *)&v17, v11); cocos2d::CCArray::addObject(v3, v12); v13 = cocos2d::CCTextureCache::sharedTextureCache(); cocos2d::CCTextureCache::addImage(v13, v18, 0); } sub_774008(&v18); sub_774008(&v17); } cocos2d::CCTexture2D::setDefaultAlphaPixelFormat(v1); std::vector::~vector((void **)&v20); return v3; }
GD Web Decomp Icon

GD Web Decomp

Raw Source