mirror of
https://github.com/RetroDECK/Duckstation.git
synced 2025-02-18 20:05:39 +00:00
SaveStateSelectorUI: Make select/next hotkeys apply immediately
This commit is contained in:
parent
296a662e74
commit
d64bc193fd
|
@ -125,10 +125,7 @@ s32 SaveStateSelectorUI::GetSelectedStateSlot() const
|
||||||
void SaveStateSelectorUI::SelectNextSlot()
|
void SaveStateSelectorUI::SelectNextSlot()
|
||||||
{
|
{
|
||||||
if (!m_open)
|
if (!m_open)
|
||||||
{
|
|
||||||
Open();
|
Open();
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
ResetOpenTimer();
|
ResetOpenTimer();
|
||||||
m_current_selection = (m_current_selection == static_cast<u32>(m_slots.size() - 1)) ? 0 : (m_current_selection + 1);
|
m_current_selection = (m_current_selection == static_cast<u32>(m_slots.size() - 1)) ? 0 : (m_current_selection + 1);
|
||||||
|
@ -137,10 +134,7 @@ void SaveStateSelectorUI::SelectNextSlot()
|
||||||
void SaveStateSelectorUI::SelectPreviousSlot()
|
void SaveStateSelectorUI::SelectPreviousSlot()
|
||||||
{
|
{
|
||||||
if (!m_open)
|
if (!m_open)
|
||||||
{
|
|
||||||
Open();
|
Open();
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
ResetOpenTimer();
|
ResetOpenTimer();
|
||||||
m_current_selection =
|
m_current_selection =
|
||||||
|
|
Loading…
Reference in a new issue