// // LoadingLayer::init from 0x3fb548 to 0x3fbac0 (1400 bytes) // // 1 xrefs: // > LoadingLayer::create @ 0x3fbb46 // // 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:21 +0000 // cocos2d::CCDirector *__fastcall LoadingLayer::init(LoadingLayer *this, bool a2) { cocos2d::CCDirector *v4; // r0 cocos2d::CCDirector *v5; // r10 FMODAudioEngine *v6; // r0 FMODAudioEngine *v7; // r0 GameManager *LevelSaveData; // r0 GameLevelManager *v9; // r0 GameLevelManager *v10; // r0 cocos2d::CCTextureCache *v11; // r0 cocos2d::CCSpriteFrameCache *v12; // r0 cocos2d::CCSpriteFrameCache *v13; // r0 cocos2d::CCDirector *v14; // r0 GameManager *WinSize; // r0 GameManager *v16; // r0 cocos2d::CCSprite *BGTexture; // r0 const char *v18; // r1 int v19; // r6 int (__fastcall *v20)(int, _DWORD *); // r7 AppDelegate *v21; // r0 void (__fastcall *v22)(int, int); // r7 AppDelegate *v23; // r0 int v24; // r0 const char *v25; // r1 int v26; // r6 void (__fastcall *v27)(int, _DWORD *); // r7 const char *v28; // r1 int v29; // r7 int v30; // r8 const char *v31; // r1 int v32; // r8 void (__fastcall *v33)(int, _DWORD *); // r7 const char *v34; // r1 int v35; // r7 int v36; // r8 cocos2d::CCLabelBMFont *LoadingString; // r0 const char *v38; // r2 int v39; // r0 int v40; // r3 int v41; // r7 void (__fastcall *v42)(int, _DWORD *); // r8 const char *v43; // r0 const char *v44; // r8 size_t v45; // r0 int v46; // r7 void (__fastcall *v47)(int, _DWORD *); // r8 int v48; // r7 void (__fastcall *v49)(int, _DWORD); // r8 float *v50; // r0 int v51; // r7 void (__fastcall *v52)(int, int); // r8 int v53; // r1 const char *v54; // r1 float *v55; // r7 const char *v56; // r1 int v57; // r0 float v58; // s15 int v59; // r0 int v60; // r5 void (__fastcall *v61)(int, _DWORD *); // r8 int v62; // r5 void (__fastcall *v63)(int, _DWORD *); // r8 void (__fastcall *v64)(float *, _DWORD *); // r5 float v65; // r8 int v66; // r0 cocos2d::CCDirector *updated; // r0 int v68; // r0 __int64 v69; // r0 cocos2d::CCActionManager *v70; // r7 cocos2d::CCSequence *v71; // r0 cocos2d::CCSequence *v72; // r8 cocos2d::CCFiniteTimeAction *v73; // r0 cocos2d::CCAction *v74; // r0 void (__fastcall *v76)(int, _DWORD *); // [sp+14h] [bp-40h] void (__fastcall *v77)(int, _DWORD *); // [sp+14h] [bp-40h] _BYTE v78[4]; // [sp+1Ch] [bp-38h] BYREF float v79; // [sp+20h] [bp-34h] BYREF float v80; // [sp+24h] [bp-30h] _DWORD v81[2]; // [sp+28h] [bp-2Ch] BYREF int v82[3]; // [sp+30h] [bp-24h] BYREF _DWORD v83[4]; // [sp+3Ch] [bp-18h] BYREF v4 = (cocos2d::CCDirector *)cocos2d::CCLayer::init(this); v5 = v4; if ( v4 ) { *((_BYTE *)this + 344) = a2; *(_BYTE *)(cocos2d::CCDirector::sharedDirector(v4) + 177) = 1; v6 = (FMODAudioEngine *)cocos2d::CCTexture2D::setDefaultAlphaPixelFormat(0); if ( !*((_BYTE *)this + 344) ) { v7 = (FMODAudioEngine *)FMODAudioEngine::sharedEngine(v6); v6 = (FMODAudioEngine *)FMODAudioEngine::setup(v7); } LevelSaveData = (GameManager *)GameManager::sharedState(v6); if ( *((_BYTE *)LevelSaveData + 840) ) { v9 = (GameLevelManager *)GameManager::sharedState(LevelSaveData); *((_BYTE *)v9 + 840) = 0; v10 = (GameLevelManager *)GameLevelManager::sharedState(v9); LevelSaveData = (GameManager *)GameLevelManager::getLevelSaveData(v10); } v11 = (cocos2d::CCTextureCache *)cocos2d::CCTextureCache::sharedTextureCache(LevelSaveData); v12 = (cocos2d::CCSpriteFrameCache *)cocos2d::CCTextureCache::addImage(v11, "GJ_LaunchSheet.png", 0); v13 = (cocos2d::CCSpriteFrameCache *)cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(v12); v14 = (cocos2d::CCDirector *)cocos2d::CCSpriteFrameCache::addSpriteFramesWithFile(v13, "GJ_LaunchSheet.plist"); cocos2d::CCDirector::sharedDirector(v14); WinSize = (GameManager *)cocos2d::CCDirector::getWinSize((cocos2d::CCDirector *)&v79); v16 = (GameManager *)GameManager::sharedState(WinSize); BGTexture = (cocos2d::CCSprite *)GameManager::getBGTexture(v16, 1); v19 = cocos2d::CCSprite::create(BGTexture, v18); (*(void (__fastcall **)(LoadingLayer *, int))(*(_DWORD *)this + 228))(this, v19); v20 = *(int (__fastcall **)(int, _DWORD *))(*(_DWORD *)v19 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v83, v79 * 0.5, v80 * 0.5); v21 = (AppDelegate *)v20(v19, v83); v22 = *(void (__fastcall **)(int, int))(*(_DWORD *)v19 + 80); v23 = (AppDelegate *)AppDelegate::get(v21); v24 = AppDelegate::bgScale(v23); v22(v19, v24); v78[0] = 0; v78[1] = 102; v78[2] = -1; (*(void (__fastcall **)(int, _BYTE *))(*(_DWORD *)v19 + 480))(v19, v78); v26 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_logo_001.png", v25); (*(void (__fastcall **)(LoadingLayer *, int))(*(_DWORD *)this + 228))(this, v26); v27 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v26 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v83, v79 * 0.5, (float)(v80 * 0.5) + 0.0); v27(v26, v83); v29 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"RobTopLogoBig_001.png", v28); (*(void (__fastcall **)(LoadingLayer *, int))(*(_DWORD *)this + 228))(this, v29); v76 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v29 + 92); v30 = (*(int (__fastcall **)(int))(*(_DWORD *)v26 + 96))(v26); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v81, 0.0, 80.0); cocos2d::CCPoint::operator+(v83, v30, v81); v76(v29, v83); *((_DWORD *)this + 80) = 0; *((_BYTE *)this + 317) = 1; v32 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"cocos2DxLogo.png", v31); (*(void (__fastcall **)(LoadingLayer *, int))(*(_DWORD *)this + 228))(this, v32); v33 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v32 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v83, v79 - 34.0, 13.0); v33(v32, v83); (*(void (__fastcall **)(int, int))(*(_DWORD *)v32 + 80))(v32, 1058642330); v35 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"fmodLogo.png", v34); (*(void (__fastcall **)(LoadingLayer *, int))(*(_DWORD *)this + 228))(this, v35); v77 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v35 + 92); v36 = (*(int (__fastcall **)(int))(*(_DWORD *)v32 + 96))(v32); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v81, 0.0, 20.0); cocos2d::CCPoint::operator+(v83, v36, v81); v77(v35, v83); (*(void (__fastcall **)(int, int))(*(_DWORD *)v35 + 80))(v35, 1058642330); (*(void (__fastcall **)(int, void *))(*(_DWORD *)v35 + 480))(v35, &unk_BEB58C); LoadingString = (cocos2d::CCLabelBMFont *)LoadingLayer::getLoadingString(this); v39 = cocos2d::CCLabelBMFont::create(LoadingString, "goldFont.fnt", v38); v40 = *(_DWORD *)this; *((_DWORD *)this + 81) = v39; (*(void (__fastcall **)(LoadingLayer *, int))(v40 + 228))(this, v39); v41 = *((_DWORD *)this + 81); v42 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v41 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v83, v79 * 0.5, (float)(v80 * 0.5) - 70.0); v42(v41, v83); (*(void (__fastcall **)(_DWORD, int))(**((_DWORD **)this + 81) + 80))(*((_DWORD *)this + 81), 1060320051); (*(void (__fastcall **)(_DWORD, _DWORD))(**((_DWORD **)this + 81) + 172))(*((_DWORD *)this + 81), 0); v43 = LoadingLayer::getLoadingString(this); memset(v82, 0, sizeof(v82)); v44 = v43; v45 = strlen(v43); std::string::__init(v82, v44, v45); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v83, 0.5, 0.5); *((_DWORD *)this + 82) = TextArea::create( (int)v82, "goldFont.fnt", 1065353216, 1138491392, (const cocos2d::CCPoint *)v83, 1105199104, 0, 0); std::string::~string((int)v82); (*(void (__fastcall **)(LoadingLayer *, _DWORD))(*(_DWORD *)this + 228))(this, *((_DWORD *)this + 82)); v46 = *((_DWORD *)this + 82); v47 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v46 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v83, v79 * 0.5, (float)(v80 * 0.5) - 100.0); v47(v46, v83); (*(void (__fastcall **)(_DWORD, int))(**((_DWORD **)this + 82) + 80))(*((_DWORD *)this + 82), 1060320051); if ( *(float *)(*(int (__fastcall **)(_DWORD))(**((_DWORD **)this + 81) + 164))(*((_DWORD *)this + 81)) > 300.0 ) { v48 = *((_DWORD *)this + 81); v49 = *(void (__fastcall **)(int, _DWORD))(*(_DWORD *)v48 + 80); v50 = (float *)(*(int (__fastcall **)(int))(*(_DWORD *)v48 + 164))(v48); v49(v48, 300.0 / *v50); } v51 = *((_DWORD *)this + 81); v52 = *(void (__fastcall **)(int, int))(*(_DWORD *)v51 + 80); if ( (*(float (__fastcall **)(int))(*(_DWORD *)v51 + 84))(v51) >= 0.7 ) { v53 = 1060320051; } else { v51 = *((_DWORD *)this + 81); v53 = (*(int (__fastcall **)(int))(*(_DWORD *)v51 + 84))(v51); } v52(v51, v53); v55 = (float *)cocos2d::CCSprite::create((cocos2d::CCSprite *)"slidergroove.png", v54); (*(void (__fastcall **)(LoadingLayer *, float *, int))(*(_DWORD *)this + 232))(this, v55, 3); v57 = cocos2d::CCSprite::create((cocos2d::CCSprite *)"sliderBar.png", v56); *((_DWORD *)this + 83) = v57; v58 = v55[86]; *((_DWORD *)this + 85) = 1090519040; v83[0] = 9729; v83[1] = 9729; v83[2] = 10497; v83[3] = 10497; *((float *)this + 84) = v58 - 4.0; v59 = (*(int (__fastcall **)(int))(*(_DWORD *)v57 + 536))(v57); cocos2d::CCTexture2D::setTexParameters(v59, v83); (*(void (__fastcall **)(float *, _DWORD, int))(*(_DWORD *)v55 + 232))(v55, *((_DWORD *)this + 83), -1); v60 = *((_DWORD *)this + 83); v61 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v60 + 148); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v81, 0.0, 0.0); v61(v60, v81); v62 = *((_DWORD *)this + 83); v63 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v62 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v81, 2.0, 4.0); v63(v62, v81); v64 = *(void (__fastcall **)(float *, _DWORD *))(*(_DWORD *)v55 + 92); v65 = *(float *)(*(int (__fastcall **)(_DWORD))(**((_DWORD **)this + 81) + 96))(*((_DWORD *)this + 81)); v66 = (*(int (__fastcall **)(_DWORD))(**((_DWORD **)this + 82) + 96))(*((_DWORD *)this + 82)); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v81, v65, *(float *)(v66 + 4) + 40.0); v64(v55, v81); updated = (cocos2d::CCDirector *)LoadingLayer::updateProgress(this, 0); v68 = cocos2d::CCDirector::sharedDirector(updated); v69 = ((__int64 (__fastcall *)(int))*(_DWORD *)(*(_DWORD *)v68 + 72))(v68); v70 = (cocos2d::CCActionManager *)v69; v71 = (cocos2d::CCSequence *)cocos2d::CCDelayTime::create(nullptr, *((float *)&v69 + 1)); v81[1] = 0; v81[0] = LoadingLayer::loadAssets; v72 = v71; v73 = (cocos2d::CCFiniteTimeAction *)cocos2d::CCCallFunc::create(this, LoadingLayer::loadAssets, 0); v74 = (cocos2d::CCAction *)cocos2d::CCSequence::create(v72, v73, 0); cocos2d::CCActionManager::addAction(v70, v74, this, 0); } return v5; }
GD Web Decomp Icon

GD Web Decomp

Raw Source