// // LevelSettingsLayer::selectArtClosed from 0xa34528 to 0xa34714 (492 bytes) // // 3 xrefs: // > `non-virtual thunk to'LevelSettingsLayer::selectArtClosed @ 0xa34718 // > @ 0x8a3c0 // > @ 0x11db6b0 // // 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 LevelSettingsLayer::selectArtClosed(LevelSettingsLayer *a1, SelectArtLayer *a2) { SelectArtType m_type; // w0 LevelEditorLayer *v5; // x0 GameManager *v6; // x0 cocos2d::CCSprite *m_backgroundSprite; // x21 void (__fastcall *v8)(cocos2d::CCSprite *__hidden, cocos2d::CCSpriteFrame *); // x22 cocos2d::CCSpriteFrameCache *v9; // x23 cocos2d::CCString *v10; // x0 const char *v11; // x0 cocos2d::CCSpriteFrame *v12; // x0 LevelEditorLayer *v13; // x0 LevelEditorLayer *m_editorLayer; // x0 LevelSettingsObject *m_settingsObject; // x0 GameManager *v16; // x0 cocos2d::CCSprite *m_groundSprite; // x21 void (__fastcall *setDisplayFrame)(cocos2d::CCSprite *__hidden, cocos2d::CCSpriteFrame *); // x22 cocos2d::CCSpriteFrameCache *v19; // x23 cocos2d::CCString *v20; // x0 const char *CString; // x0 cocos2d::CCSpriteFrame *v22; // x0 LevelEditorLayer *v23; // x0 LevelEditorLayer *v24; // x0 GameManager *v25; // x0 cocos2d::CCSprite *m_middlegroundSprite; // x21 void (__fastcall *v27)(cocos2d::CCSprite *__hidden, cocos2d::CCSpriteFrame *); // x22 cocos2d::CCSpriteFrameCache *v28; // x23 cocos2d::CCString *v29; // x0 const char *v30; // x0 cocos2d::CCSpriteFrame *v31; // x0 LevelEditorLayer *v32; // x0 m_type = a2->m_type; if ( m_type ) { if ( m_type == Ground ) { m_editorLayer = a1->m_editorLayer; if ( m_editorLayer ) GJBaseGameLayer::removeGroundLayer(m_editorLayer); m_settingsObject = a1->m_settingsObject; m_settingsObject->m_groundIndex = a2->m_art; m_settingsObject->m_groundLineIndex = a2->m_line; v16 = GameManager::sharedState(); GameManager::loadGround(v16, a2->m_art); m_groundSprite = a1->m_groundSprite; setDisplayFrame = m_groundSprite->setDisplayFrame; v19 = cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(); v20 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"gIcon_%02d_001.png", (const char *)(unsigned int)a2->m_art); CString = cocos2d::CCString::getCString(v20); v22 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v19, CString); setDisplayFrame(m_groundSprite, v22); v23 = a1->m_editorLayer; if ( v23 ) GJBaseGameLayer::createGroundLayer( v23, a1->m_settingsObject->m_groundIndex, a1->m_settingsObject->m_groundLineIndex); } else if ( m_type == Middleground ) { v24 = a1->m_editorLayer; if ( v24 ) GJBaseGameLayer::removeMiddleground(v24); a1->m_settingsObject->m_middleGroundIndex = a2->m_art; v25 = GameManager::sharedState(); GameManager::loadMiddleground(v25, a2->m_art); m_middlegroundSprite = a1->m_middlegroundSprite; v27 = m_middlegroundSprite->setDisplayFrame; v28 = cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(); v29 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"mgIcon_%02d_001.png", (const char *)(unsigned int)a2->m_art); v30 = cocos2d::CCString::getCString(v29); v31 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v28, v30); v27(m_middlegroundSprite, v31); v32 = a1->m_editorLayer; if ( v32 ) GJBaseGameLayer::createMiddleground(v32, a1->m_settingsObject->m_middleGroundIndex); } } else { v5 = a1->m_editorLayer; if ( v5 ) GJBaseGameLayer::removeBackground(v5); a1->m_settingsObject->m_backgroundIndex = a2->m_art; v6 = GameManager::sharedState(); GameManager::loadBackground(v6, a2->m_art); m_backgroundSprite = a1->m_backgroundSprite; v8 = m_backgroundSprite->setDisplayFrame; v9 = cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(); v10 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"bgIcon_%02d_001.png", (const char *)(unsigned int)a2->m_art); v11 = cocos2d::CCString::getCString(v10); v12 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v9, v11); v8(m_backgroundSprite, v12); v13 = a1->m_editorLayer; if ( v13 ) GJBaseGameLayer::createBackground(v13, a1->m_settingsObject->m_backgroundIndex); } }
GD Web Decomp Icon

GD Web Decomp

Raw Source