Skip to content
Permalink
Browse files

Show messages about operations of state slot.

  • Loading branch information
denisfa authored and rkitover committed Sep 6, 2019
1 parent 2e24845 commit 27b038b37865465a442c8ceb302b0950f7367d0f
Showing with 20 additions and 0 deletions.
  1. +20 −0 src/wx/cmdevents.cpp
@@ -1749,19 +1749,31 @@ EVT_HANDLER_MASK(SaveGameSlot, "Save current state slot", CMDEN_GB | CMDEN_GBA)
EVT_HANDLER_MASK(IncrGameSlot, "Increase state slot number", CMDEN_GB | CMDEN_GBA)
{
state_slot = (state_slot + 1) % 10;

wxString msg;
msg.Printf(_("Current state slot #%d"), state_slot);
systemScreenMessage(msg);
}

// new
EVT_HANDLER_MASK(DecrGameSlot, "Decrease state slot number", CMDEN_GB | CMDEN_GBA)
{
state_slot = (state_slot + 9) % 10;

wxString msg;
msg.Printf(_("Current state slot #%d"), state_slot);
systemScreenMessage(msg);
}

// new
EVT_HANDLER_MASK(IncrGameSlotSave, "Increase state slot number and save", CMDEN_GB | CMDEN_GBA)
{
state_slot = (state_slot + 1) % 10;
panel->SaveState(state_slot + 1);

wxString msg;
msg.Printf(_("Current state slot #%d"), state_slot);
systemScreenMessage(msg);
}

EVT_HANDLER_MASK(Rewind, "Rewind", CMDEN_REWIND)
@@ -2523,6 +2535,10 @@ EVT_HANDLER_MASK(ChangeFilter, "Change Pixel Filter", CMDEN_NREC_ANY)
panel->panel->Destroy();
panel->panel = NULL;
}

wxString msg;
msg.Printf(_("Using pixel filter #%d"), gopts.filter);
systemScreenMessage(msg);
}

EVT_HANDLER_MASK(ChangeIFB, "Change Interframe Blending", CMDEN_NREC_ANY)
@@ -2534,6 +2550,10 @@ EVT_HANDLER_MASK(ChangeIFB, "Change Interframe Blending", CMDEN_NREC_ANY)
panel->panel->Destroy();
panel->panel = NULL;
}

wxString msg;
msg.Printf(_("Using interframe blending #%d"), gopts.ifb);
systemScreenMessage(msg);
}

EVT_HANDLER_MASK(SoundConfigure, "Sound options...", CMDEN_NREC_ANY)

0 comments on commit 27b038b

Please sign in to comment.
You can’t perform that action at this time.