Permalink
Browse files

Moved from using enum to enum class

  • Loading branch information...
hissingshark committed Jun 26, 2018
1 parent 7fd7afe commit 64e432e12de3667f70fefe6af16c27c7c355a34d
Showing with 4 additions and 4 deletions.
  1. +1 −1 Core/ConfigValues.h
  2. +3 −3 UI/EmuScreen.cpp
@@ -72,7 +72,7 @@ enum class SmallDisplayZoom {
MANUAL = 3,
};
enum AutoLoadSaveState {
enum class AutoLoadSaveState {
OFF = 0,
OLDEST = 1,
NEWEST = 2,
@@ -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

0 comments on commit 64e432e

Please sign in to comment.