mirror of
https://github.com/J-D-K/JKSV.git
synced 2026-09-12 12:35:26 -05:00
Add delete_all_remote_backups and some refactoring.
This commit is contained in:
@@ -33,6 +33,15 @@ MainMenuState::MainMenuState()
|
||||
MainMenuState::initialize_view_states();
|
||||
}
|
||||
|
||||
std::shared_ptr<MainMenuState> MainMenuState::create() { return std::make_shared<MainMenuState>(); }
|
||||
|
||||
std::shared_ptr<MainMenuState> MainMenuState::create_and_push()
|
||||
{
|
||||
auto newState = MainMenuState::create();
|
||||
StateManager::push_state(newState);
|
||||
return newState;
|
||||
}
|
||||
|
||||
void MainMenuState::update()
|
||||
{
|
||||
const int selected = m_mainMenu.get_selected();
|
||||
|
||||
Reference in New Issue
Block a user