Moved from using enum to enum class

This commit is contained in:
hissingshark 2018-06-26 07:52:02 +01:00
parent 7fd7afeba9
commit 64e432e12d
2 changed files with 4 additions and 4 deletions

View File

@ -72,7 +72,7 @@ enum class SmallDisplayZoom {
MANUAL = 3,
};
enum AutoLoadSaveState {
enum class AutoLoadSaveState {
OFF = 0,
OLDEST = 1,
NEWEST = 2,

View File

@ -1341,12 +1341,12 @@ void EmuScreen::autoLoad() {
//check if save state has save, if so, load
switch (g_Config.iAutoLoadSaveState) {
case AutoLoadSaveState::OFF: // "AutoLoad Off"
case (int)AutoLoadSaveState::OFF: // "AutoLoad Off"
return;
case AutoLoadSaveState::OLDEST: // "Oldest Save"
case (int)AutoLoadSaveState::OLDEST: // "Oldest Save"
autoSlot = SaveState::GetOldestSlot(gamePath_);
break;
case AutoLoadSaveState::NEWEST: // "Newest Save"
case (int)AutoLoadSaveState::NEWEST: // "Newest Save"
autoSlot = SaveState::GetNewestSlot(gamePath_);
break;
default: // try the specific save state slot specified