From d08aa741736f354d3294a76d9704af6121552731 Mon Sep 17 00:00:00 2001 From: Jonathan Campbell Date: Mon, 19 Feb 2018 02:17:41 -0800 Subject: [PATCH] Revert "Remove dynamic core from Windows menu resource" This reverts commit e50ce08d9a780eace3f341fc446d0c8e485fb34d. --- include/resource.h | 1 + src/gui/menu.cpp | 1 + src/resource.h | 1 + src/winres.rc | 1 + 4 files changed, 4 insertions(+) diff --git a/include/resource.h b/include/resource.h index 00c1afd48..1ac1f932c 100644 --- a/include/resource.h +++ b/include/resource.h @@ -18,6 +18,7 @@ #define ID_AUTOCYCLE 119 #define ID_AUTODETER 120 #define ID_NORMAL 121 +#define ID_DYNAMIC 122 #define ID_FULL 123 #define ID_SIMPLE 124 #define ID_AUTO 125 diff --git a/src/gui/menu.cpp b/src/gui/menu.cpp index 53447bf68..e10424387 100644 --- a/src/gui/menu.cpp +++ b/src/gui/menu.cpp @@ -1098,6 +1098,7 @@ int Reflect_Menu(void) { CheckMenuItem(m_handle, ID_AUTOCYCLE, (CPU_CycleAutoAdjust) ? MF_CHECKED : MF_STRING); CheckMenuItem(m_handle, ID_AUTODETER, (CPU_AutoDetermineMode&CPU_AUTODETERMINE_CYCLES) ? MF_CHECKED : MF_STRING); CheckMenuItem(m_handle, ID_NORMAL, (!strcasecmp(core_mode, "Normal")) ? MF_CHECKED : MF_STRING); + CheckMenuItem(m_handle, ID_DYNAMIC, (!strcasecmp(core_mode, "Dynamic")) ? MF_CHECKED : MF_STRING); CheckMenuItem(m_handle, ID_FULL, (!strcasecmp(core_mode, "Full")) ? MF_CHECKED : MF_STRING); CheckMenuItem(m_handle, ID_SIMPLE, (!strcasecmp(core_mode, "Simple")) ? MF_CHECKED : MF_STRING); CheckMenuItem(m_handle, ID_AUTO, (!strcasecmp(core_mode, "Auto")) ? MF_CHECKED : MF_STRING); diff --git a/src/resource.h b/src/resource.h index de00de947..abb88da44 100755 --- a/src/resource.h +++ b/src/resource.h @@ -28,6 +28,7 @@ #define ID_AUTOCYCLE 119 #define ID_AUTODETER 120 #define ID_NORMAL 121 +#define ID_DYNAMIC 122 #define ID_FULL 123 #define ID_SIMPLE 124 #define ID_AUTO 125 diff --git a/src/winres.rc b/src/winres.rc index aaea778bf..1a6fa32e1 100755 --- a/src/winres.rc +++ b/src/winres.rc @@ -47,6 +47,7 @@ BEGIN MENUITEM "Auto", ID_AUTO MENUITEM "Normal\tCtrl-1", ID_NORMAL MENUITEM "Full\tCtrl-2", ID_FULL + MENUITEM "Dynamic\tCtrl-3", ID_DYNAMIC MENUITEM "Simple\tCtrl-4", ID_SIMPLE END POPUP "Type"