mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-29 12:19:12 +00:00
Eliminated memory leaks of the save state code and put it in a namespace. It is prettier than before, but it could be better (less global usage). Other minor stuff.
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@7366 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
parent
e4141c331e
commit
78d9f927e1
14 changed files with 264 additions and 392 deletions
|
@ -214,20 +214,20 @@ void X11_MainLoop()
|
|||
{
|
||||
int slot_number = key - XK_F1 + 1;
|
||||
if (event.xkey.state & ShiftMask)
|
||||
State_Save(slot_number);
|
||||
State::Save(slot_number);
|
||||
else
|
||||
State_Load(slot_number);
|
||||
State::Load(slot_number);
|
||||
}
|
||||
else if (key == XK_F9)
|
||||
Core::SaveScreenShot();
|
||||
else if (key == XK_F11)
|
||||
State_LoadLastSaved();
|
||||
State::LoadLastSaved();
|
||||
else if (key == XK_F12)
|
||||
{
|
||||
if (event.xkey.state & ShiftMask)
|
||||
State_UndoLoadState();
|
||||
State::UndoLoadState();
|
||||
else
|
||||
State_UndoSaveState();
|
||||
State::UndoSaveState();
|
||||
}
|
||||
break;
|
||||
case FocusIn:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue