// // LevelSettingsLayer::selectArtClosed from 0x10026f380 to 0x10026f5c4 (580 bytes) // // 2 xrefs: // > sub_10026F5D0 @ 0x10026f5dc // > @ 0x1008ec960 // // 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 LevelSettingsLayer::selectArtClosed(LevelSettingsLayer *a1, SelectArtLayer *a2) { SelectArtType m_type; // eax LevelEditorLayer *v4; // rdi GameManager *v5; // rax cocos2d::CCSprite *m_backgroundSprite; // r15 cocos2d::CCSpriteFrameCache *v7; // r12 cocos2d::CCString *v8; // rax const char *v9; // rax cocos2d::CCSpriteFrame *v10; // rax LevelEditorLayer *v11; // rdi LevelEditorLayer *v12; // rdi LevelSettingsObject *m_settingsObject; // rax GameManager *v14; // rax cocos2d::CCSprite *m_groundSprite; // r15 cocos2d::CCSpriteFrameCache *v16; // r12 cocos2d::CCString *v17; // rax const char *v18; // rax cocos2d::CCSpriteFrame *v19; // rax LevelEditorLayer *v20; // rdi LevelEditorLayer *m_editorLayer; // rdi GameManager *v22; // rax cocos2d::CCSprite *m_middlegroundSprite; // r15 cocos2d::CCSpriteFrameCache *v24; // r12 cocos2d::CCString *v25; // rax const char *CString; // rax cocos2d::CCSpriteFrame *v27; // rax LevelEditorLayer *v28; // rdi char v29; // [rsp+0h] [rbp-20h] m_type = a2->m_type; switch ( m_type ) { case Middleground: m_editorLayer = a1->m_editorLayer; if ( m_editorLayer ) GJBaseGameLayer::removeMiddleground(m_editorLayer); a1->m_settingsObject->m_middleGroundIndex = a2->m_art; v22 = GameManager::sharedState(); GameManager::loadMiddleground(v22, a2->m_art); m_middlegroundSprite = a1->m_middlegroundSprite; v24 = cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(); v25 = (cocos2d::CCString *)sub_1007AB580("mgIcon_%02d_001.png", v29); CString = cocos2d::CCString::getCString(v25); v27 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v24, CString); ((void (__fastcall *)(cocos2d::CCSprite *, cocos2d::CCSpriteFrame *))m_middlegroundSprite->setDisplayFrame)( m_middlegroundSprite, v27); v28 = a1->m_editorLayer; if ( v28 ) GJBaseGameLayer::createMiddleground(v28, a1->m_settingsObject->m_middleGroundIndex); break; case Ground: v12 = a1->m_editorLayer; if ( v12 ) GJBaseGameLayer::removeGroundLayer(v12); m_settingsObject = a1->m_settingsObject; m_settingsObject->m_groundIndex = a2->m_art; m_settingsObject->m_groundLineIndex = a2->m_line; v14 = GameManager::sharedState(); GameManager::loadGround(v14, a2->m_art); m_groundSprite = a1->m_groundSprite; v16 = cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(); v17 = (cocos2d::CCString *)sub_1007AB580("gIcon_%02d_001.png", v29); v18 = cocos2d::CCString::getCString(v17); v19 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v16, v18); ((void (__fastcall *)(cocos2d::CCSprite *, cocos2d::CCSpriteFrame *))m_groundSprite->setDisplayFrame)( m_groundSprite, v19); v20 = a1->m_editorLayer; if ( v20 ) GJBaseGameLayer::createGroundLayer( v20, a1->m_settingsObject->m_groundIndex, a1->m_settingsObject->m_groundLineIndex); break; case Background: v4 = a1->m_editorLayer; if ( v4 ) GJBaseGameLayer::removeBackground(v4); a1->m_settingsObject->m_backgroundIndex = a2->m_art; v5 = GameManager::sharedState(); GameManager::loadBackground(v5, a2->m_art); m_backgroundSprite = a1->m_backgroundSprite; v7 = cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(); v8 = (cocos2d::CCString *)sub_1007AB580("bgIcon_%02d_001.png", v29); v9 = cocos2d::CCString::getCString(v8); v10 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v7, v9); ((void (__fastcall *)(cocos2d::CCSprite *, cocos2d::CCSpriteFrame *))m_backgroundSprite->setDisplayFrame)( m_backgroundSprite, v10); v11 = a1->m_editorLayer; if ( v11 ) GJBaseGameLayer::createBackground(v11, a1->m_settingsObject->m_backgroundIndex); break; } }
GD Web Decomp Icon

GD Web Decomp

Raw Source