summaryrefslogtreecommitdiff
path: root/Source/Core/DolphinQt/MainWindow.cpp
diff options
context:
space:
mode:
authormitaclaw <140017135+mitaclaw@users.noreply.github.com>2024-03-01 10:41:48 -0800
committermitaclaw <140017135+mitaclaw@users.noreply.github.com>2024-03-01 10:52:50 -0800
commit0d4cb5ddc7741f8266869bdae453bb2805200e55 (patch)
tree92fbbc24f234709eb1ccb95dc1dae498edf0a9be /Source/Core/DolphinQt/MainWindow.cpp
parent5a81916ee9b4197c421937e8d8096cbd22c2820d (diff)
State: Avoid Global System Accessor
Diffstat (limited to 'Source/Core/DolphinQt/MainWindow.cpp')
-rw-r--r--Source/Core/DolphinQt/MainWindow.cpp20
1 files changed, 10 insertions, 10 deletions
diff --git a/Source/Core/DolphinQt/MainWindow.cpp b/Source/Core/DolphinQt/MainWindow.cpp
index ff028f5d37..1077c3b981 100644
--- a/Source/Core/DolphinQt/MainWindow.cpp
+++ b/Source/Core/DolphinQt/MainWindow.cpp
@@ -1412,7 +1412,7 @@ void MainWindow::StateLoad()
this, tr("Select a File"), dialog_path, tr("All Save States (*.sav *.s##);; All Files (*)"));
Config::SetBase(Config::MAIN_CURRENT_STATE_PATH, QFileInfo(path).dir().path().toStdString());
if (!path.isEmpty())
- State::LoadAs(path.toStdString());
+ State::LoadAs(Core::System::GetInstance(), path.toStdString());
}
void MainWindow::StateSave()
@@ -1424,47 +1424,47 @@ void MainWindow::StateSave()
this, tr("Select a File"), dialog_path, tr("All Save States (*.sav *.s##);; All Files (*)"));
Config::SetBase(Config::MAIN_CURRENT_STATE_PATH, QFileInfo(path).dir().path().toStdString());
if (!path.isEmpty())
- State::SaveAs(path.toStdString());
+ State::SaveAs(Core::System::GetInstance(), path.toStdString());
}
void MainWindow::StateLoadSlot()
{
- State::Load(m_state_slot);
+ State::Load(Core::System::GetInstance(), m_state_slot);
}
void MainWindow::StateSaveSlot()
{
- State::Save(m_state_slot);
+ State::Save(Core::System::GetInstance(), m_state_slot);
}
void MainWindow::StateLoadSlotAt(int slot)
{
- State::Load(slot);
+ State::Load(Core::System::GetInstance(), slot);
}
void MainWindow::StateLoadLastSavedAt(int slot)
{
- State::LoadLastSaved(slot);
+ State::LoadLastSaved(Core::System::GetInstance(), slot);
}
void MainWindow::StateSaveSlotAt(int slot)
{
- State::Save(slot);
+ State::Save(Core::System::GetInstance(), slot);
}
void MainWindow::StateLoadUndo()
{
- State::UndoLoadState();
+ State::UndoLoadState(Core::System::GetInstance());
}
void MainWindow::StateSaveUndo()
{
- State::UndoSaveState();
+ State::UndoSaveState(Core::System::GetInstance());
}
void MainWindow::StateSaveOldest()
{
- State::SaveFirstSaved();
+ State::SaveFirstSaved(Core::System::GetInstance());
}
void MainWindow::SetStateSlot(int slot)