mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-09-03 08:07:45 +00:00
State: Avoid Global System Accessor
This commit is contained in:
parent
5a81916ee9
commit
0d4cb5ddc7
10 changed files with 81 additions and 75 deletions
|
@ -7,6 +7,7 @@
|
|||
#include "Core/Config/MainSettings.h"
|
||||
#include "Core/Core.h"
|
||||
#include "Core/State.h"
|
||||
#include "Core/System.h"
|
||||
#include "VideoCommon/Present.h"
|
||||
#include "VideoCommon/RenderBase.h"
|
||||
|
||||
|
@ -54,27 +55,27 @@
|
|||
|
||||
- (void)loadLastSaved
|
||||
{
|
||||
State::LoadLastSaved();
|
||||
State::LoadLastSaved(Core::System::GetInstance());
|
||||
}
|
||||
|
||||
- (void)undoLoadState
|
||||
{
|
||||
State::UndoLoadState();
|
||||
State::UndoLoadState(Core::System::GetInstance());
|
||||
}
|
||||
|
||||
- (void)undoSaveState
|
||||
{
|
||||
State::UndoSaveState();
|
||||
State::UndoSaveState(Core::System::GetInstance());
|
||||
}
|
||||
|
||||
- (void)loadState:(id)sender
|
||||
{
|
||||
State::Load([sender tag]);
|
||||
State::Load(Core::System::GetInstance(), [sender tag]);
|
||||
}
|
||||
|
||||
- (void)saveState:(id)sender
|
||||
{
|
||||
State::Save([sender tag]);
|
||||
State::Save(Core::System::GetInstance(), [sender tag]);
|
||||
}
|
||||
@end
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue