// // cocos2d::VolatileTexture::reloadAllTextures from 0x5f57d8 to 0x5f5994 (444 bytes) // // 1 xrefs: // > cocos2d::CCTextureCache::reloadAllTextures @ 0x5f59a8 // // 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 __fastcall cocos2d::VolatileTexture::reloadAllTextures(cocos2d::VolatileTexture *this) { int v1; // r4 int v2; // r7 int *i; // r3 int v4; // r4 unsigned int v5; // r8 int v6; // r6 cocos2d::CCTexture2DPixelFormat v7; // r8 cocos2d::CCImage *v8; // r9 cocos2d::CCFileUtils *v9; // r0 void *v10; // r8 int v11; // [sp+14h] [bp-28h] cocos2d::CCTexture2DPixelFormat v12; // [sp+20h] [bp-1Ch] int v13; // [sp+2Ch] [bp-10h] BYREF int v14; // [sp+30h] [bp-Ch] BYREF v1 = cocos2d::VolatileTexture::textures; cocos2d::VolatileTexture::isReloading = 1; while ( (int *)v1 != &cocos2d::VolatileTexture::textures ) { v2 = *(_DWORD *)v1; cocos2d::CCTexture2D::releaseGLTexture(**(cocos2d::CCTexture2D ***)(v1 + 8)); v1 = v2; } for ( i = (int *)cocos2d::VolatileTexture::textures; i != &cocos2d::VolatileTexture::textures; i = (int *)v11 ) { v4 = i[2]; v11 = *i; switch ( *(_DWORD *)(v4 + 8) ) { case 1: v5 = 0; sub_776584((int)&v13, *(char **)(v4 + 28)); while ( v5 < *(_DWORD *)(v13 - 12) ) { sub_775170(&v13); v6 = v13; sub_775170(&v13); *(_BYTE *)(v6 + v5) = tolower(*(unsigned __int8 *)(v13 + v5)); ++v5; } if ( sub_7748A0((int)&v13, ".pvr") == -1 ) { v8 = (cocos2d::CCImage *)operator new(0x48u); cocos2d::CCImage::CCImage(v8); v14 = 0; v9 = cocos2d::CCFileUtils::sharedFileUtils(); v10 = (void *)((int (__fastcall *)(cocos2d::CCFileUtils *, _DWORD, const char *, int *))v9->addSearchResolutionsOrder)( v9, *(_DWORD *)(v4 + 28), "rb", &v14); if ( cocos2d::CCImage::initWithImageData( v8, v10, v14, *(cocos2d::CCImage::EImageFormat *)(v4 + 32), 0, 0, 8, 0) ) { v12 = cocos2d::CCTexture2D::defaultAlphaPixelFormat(); cocos2d::CCTexture2D::setDefaultAlphaPixelFormat(*(cocos2d::CCTexture2DPixelFormat *)(v4 + 24)); cocos2d::CCTexture2D::initWithImage(*(cocos2d::CCTexture2D **)v4, v8); cocos2d::CCTexture2D::setDefaultAlphaPixelFormat(v12); } if ( v10 ) operator delete[](v10); cocos2d::CCObject::release(v8); } else { v7 = cocos2d::CCTexture2D::defaultAlphaPixelFormat(); cocos2d::CCTexture2D::setDefaultAlphaPixelFormat(*(cocos2d::CCTexture2DPixelFormat *)(v4 + 24)); cocos2d::CCTexture2D::initWithPVRFile(*(cocos2d::CCTexture2D **)v4, *(const char **)(v4 + 28)); cocos2d::CCTexture2D::setDefaultAlphaPixelFormat(v7); } sub_774008(&v13); break; case 2: cocos2d::CCTexture2D::initWithData( *(cocos2d::CCTexture2D **)v4, *(const void **)(v4 + 12), *(cocos2d::CCTexture2DPixelFormat *)(v4 + 24), (unsigned int)*(float *)(v4 + 16), (unsigned int)*(float *)(v4 + 20), (const cocos2d::CCSize *)(v4 + 16)); break; case 3: cocos2d::CCTexture2D::initWithString( *(cocos2d::CCTexture2D **)v4, *(cocos2d::CCTexture2D **)(v4 + 72), *(char **)(v4 + 68), *(float *)(v4 + 76), (float *)(v4 + 52), *(cocos2d::CCTextAlignment *)(v4 + 60), *(cocos2d::CCVerticalTextAlignment *)(v4 + 64)); break; case 4: cocos2d::CCTexture2D::initWithImage(*(cocos2d::CCTexture2D **)v4, *(cocos2d::CCImage **)(v4 + 4)); break; default: break; } cocos2d::CCTexture2D::setTexParameters(*(cocos2d::CCTexture2D **)v4, (cocos2d::ccTexParams *)(v4 + 36)); } cocos2d::VolatileTexture::isReloading = 0; }
GD Web Decomp Icon

GD Web Decomp

Raw Source