// // LoadingLayer::loadAssets from 0x30b6f8 to 0x30bba8 (1200 bytes) // // 0 xrefs: // // 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 LoadingLayer::loadAssets(LoadingLayer *a1) { int m_loadStep; // r3 cocos2d::CCTextureCache *v3; // r0 cocos2d::CCSpriteFrameCache *v4; // r0 const char *v5; // r1 cocos2d::CCTextureCache *v6; // r0 cocos2d::CCTextureCache *v7; // r0 cocos2d::CCSpriteFrameCache *v8; // r0 cocos2d::CCTextureCache *v9; // r0 cocos2d::CCTextureCache *v10; // r0 cocos2d::CCSpriteFrameCache *v11; // r0 cocos2d::CCTextureCache *v12; // r0 cocos2d::CCTextureCache *v13; // r0 cocos2d::CCTextureCache *v14; // r0 cocos2d::CCSpriteFrameCache *v15; // r0 cocos2d::CCTextureCache *v16; // r0 cocos2d::CCSpriteFrameCache *v17; // r0 cocos2d::CCTextureCache *v18; // r0 cocos2d::CCTextureCache *v19; // r0 cocos2d::CCTextureCache *v20; // r0 cocos2d::CCSpriteFrameCache *v21; // r0 cocos2d::CCTextureCache *v22; // r0 cocos2d::CCTextureCache *v23; // r0 cocos2d::CCSpriteFrameCache *v24; // r0 cocos2d::CCTextureCache *v25; // r0 cocos2d::CCTextureCache *v26; // r0 cocos2d::CCTextureCache *v27; // r0 cocos2d::CCTextureCache *v28; // r0 cocos2d::CCTextureCache *v29; // r0 const char *v30; // r1 cocos2d::CCTextureCache *v31; // r0 cocos2d::CCTextureCache *v32; // r0 cocos2d::CCTextureCache *v33; // r0 cocos2d::CCTextureCache *v34; // r0 cocos2d::CCTextureCache *v35; // r0 cocos2d::CCTextureCache *v36; // r0 cocos2d::CCTextureCache *v37; // r0 ObjectManager *v38; // r0 CCAnimateFrameCache *v39; // r0 CCContentManager *v40; // r0 CCContentManager *v41; // r0 CCContentManager *v42; // r0 CCCircleWave *v43; // r7 void (__fastcall *setPosition)(CCCircleWave *__hidden, const cocos2d::CCPoint *); // r8 cocos2d::CCDirector *v45; // r7 void (__fastcall *setSceneDelegate)(cocos2d::CCDirector *__hidden, cocos2d::CCSceneDelegate *); // r8 AppDelegate *v47; // r0 std::string *p_m_resourceRootPath; // r1 GameManager *v49; // r0 cocos2d::CCDirector *v50; // r8 cocos2d::CCDirector *v51; // r5 GameManager *v52; // r0 GameManager *v53; // r0 AppDelegate *v54; // r0 GameManager *v55; // r0 GameManager *v56; // r0 GameManager *v57; // r0 int v58; // r1 cocos2d::CCDirector *v59; // r0 cocos2d::CCActionManager *v60; // r8 cocos2d::CCDelayTime *v61; // r0 cocos2d::CCSequence *v62; // r9 cocos2d::CCFiniteTimeAction *v63; // r0 cocos2d::CCAction *v64; // r0 char *v65; // [sp+0h] [bp-2Ch] char v66; // [sp+18h] [bp-14h] BYREF cocos2d::CCPoint v67; // [sp+1Ch] [bp-10h] BYREF cocos2d::CCPoint v68; // 0:kr00_8.8 clock_gettime(0, (struct timespec *)&v67); m_loadStep = a1->m_loadStep; if ( m_loadStep <= 0 ) { v3 = cocos2d::CCTextureCache::sharedTextureCache(); cocos2d::CCTextureCache::addImage(v3, "GJ_GameSheet.png", 0); v4 = cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(); v5 = "GJ_GameSheet.plist"; LABEL_5: cocos2d::CCSpriteFrameCache::addSpriteFramesWithFile(v4, v5); goto LABEL_41; } switch ( m_loadStep ) { case 1: v6 = cocos2d::CCTextureCache::sharedTextureCache(); cocos2d::CCTextureCache::addImage(v6, "GJ_GameSheet02.png", 0); v4 = cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(); v5 = "GJ_GameSheet02.plist"; goto LABEL_5; case 2: v7 = cocos2d::CCTextureCache::sharedTextureCache(); cocos2d::CCTextureCache::addImage(v7, "GJ_GameSheet03.png", 0); v8 = cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(); cocos2d::CCSpriteFrameCache::addSpriteFramesWithFile(v8, "GJ_GameSheet03.plist"); v9 = cocos2d::CCTextureCache::sharedTextureCache(); cocos2d::CCTextureCache::addImage(v9, "GJ_GameSheetEditor.png", 0); v4 = cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(); v5 = "GJ_GameSheetEditor.plist"; goto LABEL_5; case 3: v10 = cocos2d::CCTextureCache::sharedTextureCache(); cocos2d::CCTextureCache::addImage(v10, "GJ_GameSheet04.png", 0); v11 = cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(); cocos2d::CCSpriteFrameCache::addSpriteFramesWithFile(v11, "GJ_GameSheet04.plist"); v12 = cocos2d::CCTextureCache::sharedTextureCache(); cocos2d::CCTextureCache::prepareAsyncLoading(v12); goto LABEL_41; case 4: v13 = cocos2d::CCTextureCache::sharedTextureCache(); cocos2d::CCTextureCache::addImage(v13, "GJ_GameSheetGlow.png", 0); v4 = cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(); v5 = "GJ_GameSheetGlow.plist"; goto LABEL_5; case 5: v14 = cocos2d::CCTextureCache::sharedTextureCache(); cocos2d::CCTextureCache::addImage(v14, "FireSheet_01.png", 0); v15 = cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(); cocos2d::CCSpriteFrameCache::addSpriteFramesWithFile(v15, "FireSheet_01.plist"); v16 = cocos2d::CCTextureCache::sharedTextureCache(); cocos2d::CCTextureCache::addImage(v16, "GJ_ShopSheet.png", 0); v17 = cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(); cocos2d::CCSpriteFrameCache::addSpriteFramesWithFile(v17, "GJ_ShopSheet.plist"); v18 = cocos2d::CCTextureCache::sharedTextureCache(); cocos2d::CCTextureCache::addImage(v18, "smallDot.png", 0); v19 = cocos2d::CCTextureCache::sharedTextureCache(); cocos2d::CCTextureCache::addImage(v19, "square02_001.png", 0); v20 = cocos2d::CCTextureCache::sharedTextureCache(); cocos2d::CCTextureCache::addImage(v20, "GJ_ParticleSheet.png", 0); v21 = cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(); cocos2d::CCSpriteFrameCache::addSpriteFramesWithFile(v21, "GJ_ParticleSheet.plist"); v22 = cocos2d::CCTextureCache::sharedTextureCache(); cocos2d::CCTextureCache::addImage(v22, "PixelSheet_01.png", 0); v4 = cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(); v5 = "PixelSheet_01.plist"; goto LABEL_5; case 6: v23 = cocos2d::CCTextureCache::sharedTextureCache(); cocos2d::CCTextureCache::addImage(v23, "CCControlColourPickerSpriteSheet.png", 0); v24 = cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(); cocos2d::CCSpriteFrameCache::addSpriteFramesWithFile(v24, "CCControlColourPickerSpriteSheet.plist"); v25 = cocos2d::CCTextureCache::sharedTextureCache(); cocos2d::CCTextureCache::addImage(v25, "GJ_gradientBG.png", 0); v26 = cocos2d::CCTextureCache::sharedTextureCache(); cocos2d::CCTextureCache::addImage(v26, "edit_barBG_001.png", 0); v27 = cocos2d::CCTextureCache::sharedTextureCache(); cocos2d::CCTextureCache::addImage(v27, "GJ_button_01.png", 0); v28 = cocos2d::CCTextureCache::sharedTextureCache(); cocos2d::CCTextureCache::addImage(v28, "slidergroove2.png", 0); v29 = cocos2d::CCTextureCache::sharedTextureCache(); v30 = "sliderBar2.png"; LABEL_18: cocos2d::CCTextureCache::addImage(v29, v30, 0); goto LABEL_41; case 7: v31 = cocos2d::CCTextureCache::sharedTextureCache(); cocos2d::CCTextureCache::addImage(v31, "GJ_square01.png", 0); v32 = cocos2d::CCTextureCache::sharedTextureCache(); cocos2d::CCTextureCache::addImage(v32, "GJ_square02.png", 0); v33 = cocos2d::CCTextureCache::sharedTextureCache(); cocos2d::CCTextureCache::addImage(v33, "GJ_square03.png", 0); v34 = cocos2d::CCTextureCache::sharedTextureCache(); cocos2d::CCTextureCache::addImage(v34, "GJ_square04.png", 0); v35 = cocos2d::CCTextureCache::sharedTextureCache(); cocos2d::CCTextureCache::addImage(v35, "GJ_square05.png", 0); v29 = cocos2d::CCTextureCache::sharedTextureCache(); v30 = "gravityLine_001.png"; goto LABEL_18; case 8: cocos2d::CCLabelBMFont::create(); sub_776584((int)&v66, "temp"); cocos2d::CCPoint::CCPoint(&v67, 0.0, 1.0); TextArea::create( (TextArea *)&v66, (std::string)"chatFont.fnt", (const char *)0x3F800000, 1128792064, &v67, (cocos2d::CCPoint)1101004800LL); sub_774008(&v66); v36 = cocos2d::CCTextureCache::sharedTextureCache(); cocos2d::CCTextureCache::addImage(v36, "goldFont.png", 0); v37 = cocos2d::CCTextureCache::sharedTextureCache(); cocos2d::CCTextureCache::addImage(v37, "bigFont.png", 0); cocos2d::CCLabelBMFont::create(); cocos2d::CCLabelBMFont::create(); goto LABEL_41; case 9: v38 = ObjectManager::instance(); ObjectManager::setup(v38); v39 = CCAnimateFrameCache::sharedSpriteFrameCache(); CCAnimateFrameCache::addSpriteFramesWithFile(v39, "Robot_AnimDesc.plist"); v40 = CCContentManager::sharedManager(); CCContentManager::addDict(v40, "glassDestroy01.plist", 0); v41 = CCContentManager::sharedManager(); CCContentManager::addDict(v41, "coinPickupEffect.plist", 0); v42 = CCContentManager::sharedManager(); CCContentManager::addDict(v42, "explodeEffect.plist", 0); AchievementManager::sharedState(); ObjectToolbox::sharedState(); goto LABEL_41; case 10: goto LABEL_41; case 11: if ( GameManager::sharedState()->m_recordGameplay && !a1->m_fromRefresh ) GameManager::sharedState()->m_everyPlaySetup = 1; goto LABEL_41; case 12: CCTextInputNode::create(200.0, 50.0, "Temp", "Thonburi"); goto LABEL_41; case 13: if ( !a1->m_fromRefresh ) { v43 = CCCircleWave::create(10.0, 5.0, 0.3, 1); a1->addChild(a1, v43); setPosition = v43->setPosition; cocos2d::CCPoint::CCPoint(&v67, -100.0, -100.0); setPosition(v43, &v67); } goto LABEL_41; } if ( m_loadStep != 14 ) { LABEL_41: v58 = a1->m_loadStep; a1->m_unknown2 = 1; a1->m_loadStep = ++v58; LoadingLayer::updateProgress(a1, 7 * v58); v59 = cocos2d::CCDirector::sharedDirector(); v60 = v59->getActionManager(v59); v61 = cocos2d::CCDelayTime::create(0.01); v67.y = 0.0; LODWORD(v67.x) = LoadingLayer::loadAssets; v62 = (cocos2d::CCSequence *)v61; v63 = (cocos2d::CCFiniteTimeAction *)cocos2d::CCCallFunc::create(a1, LoadingLayer::loadAssets, 0); v64 = (cocos2d::CCAction *)cocos2d::CCSequence::create(v62, v63, 0); cocos2d::CCActionManager::addAction(v60, v64, a1, 0); return; } v45 = cocos2d::CCDirector::sharedDirector(); setSceneDelegate = v45->setSceneDelegate; v47 = AppDelegate::get(); if ( v47 ) p_m_resourceRootPath = &v47->m_resourceRootPath; else p_m_resourceRootPath = nullptr; setSceneDelegate(v45, (cocos2d::CCSceneDelegate *)p_m_resourceRootPath); v49 = GameManager::sharedState(); if ( GameManager::getGameVariable(v49, "0115") ) { v50 = cocos2d::CCDirector::sharedDirector(); sub_776584((int)&v66, "chatFont.fnt"); cocos2d::CCPoint::CCPoint(&v67, 0.0, 0.0); LODWORD(v68.x) = &v67; LODWORD(v68.y) = v65; cocos2d::CCDirector::toggleShowFPS(v50, 1, (std::string)&v66, v68); sub_774008(&v66); } v51 = cocos2d::CCDirector::sharedDirector(); v52 = GameManager::sharedState(); v51->m_bFastMenu = GameManager::getGameVariable(v52, "0168"); v53 = GameManager::sharedState(); GameManager::updateCustomFPS(v53); v54 = AppDelegate::get(); AppDelegate::loadingIsFinished(v54); if ( !a1->m_fromRefresh ) { v55 = GameManager::sharedState(); GameManager::updateMusic(v55); v56 = GameManager::sharedState(); GameManager::fadeInMenuMusic(v56); v57 = GameManager::sharedState(); GameManager::syncPlatformAchievements(v57); } LoadingLayer::loadingFinished(a1); }
GD Web Decomp Icon

GD Web Decomp

Raw Source