// // LevelSettingsLayer::selectSettingClosed from 0x10017bc54 to 0x10017bd78 (292 bytes) // // 2 xrefs: // > sub_10017BDD8 @ 0x10017bddc // > @ 0x1007a09a8 // // 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::selectSettingClosed(LevelSettingsLayer *a1, SelectSettingLayer *a2) { SelectSettingType m_type; // w21 int SelectedValue; // w20 cocos2d::CCSprite *m_modeSprite; // x21 cocos2d::CCSpriteFrameCache *v7; // x23 void **v8; // x1 cocos2d::CCSpriteFrame *v9; // x0 cocos2d::CCSprite *m_speedSprite; // x21 cocos2d::CCSpriteFrameCache *v11; // x23 void **v12; // x1 cocos2d::CCSpriteFrame *v13; // x0 void *__p[2]; // [xsp+8h] [xbp-48h] BYREF char v15; // [xsp+1Fh] [xbp-31h] m_type = a2->m_type; SelectedValue = SelectSettingLayer::getSelectedValue(a2); if ( (unsigned int)m_type > StartingModePlatformer ) { if ( m_type == StartingSpeed ) { m_speedSprite = a1->m_speedSprite; v11 = cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(); SelectSettingLayer::frameForItem(__p, (unsigned int)a2->m_type, (unsigned int)a2->m_settingID); if ( v15 >= 0 ) v12 = __p; else v12 = (void **)__p[0]; v13 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v11, (const char *)v12); ((void (__fastcall *)(cocos2d::CCSprite *, cocos2d::CCSpriteFrame *))m_speedSprite->setDisplayFrame)( m_speedSprite, v13); if ( v15 < 0 ) operator delete(__p[0]); a1->m_settingsObject->m_startSpeed = SelectedValue; } } else { m_modeSprite = a1->m_modeSprite; v7 = cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(); SelectSettingLayer::frameForItem(__p, (unsigned int)a2->m_type, (unsigned int)a2->m_settingID); if ( v15 >= 0 ) v8 = __p; else v8 = (void **)__p[0]; v9 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v7, (const char *)v8); ((void (__fastcall *)(cocos2d::CCSprite *, cocos2d::CCSpriteFrame *))m_modeSprite->setDisplayFrame)( m_modeSprite, v9); if ( v15 < 0 ) operator delete(__p[0]); a1->m_settingsObject->m_startMode = SelectedValue; } }
GD Web Decomp Icon

GD Web Decomp

Raw Source