From e5a162dbe6f9b9982018fdf2ea272cb3d15c68e0 Mon Sep 17 00:00:00 2001 From: tildearrow Date: Mon, 4 Apr 2022 00:48:08 -0500 Subject: [PATCH] GUI: add presets for FDS and MMC5 --- src/gui/guiConst.cpp | 2 ++ src/gui/presets.cpp | 14 ++++++++++++++ src/gui/sysConf.cpp | 2 ++ 3 files changed, 18 insertions(+) diff --git a/src/gui/guiConst.cpp b/src/gui/guiConst.cpp index 20085cfe..462c9f82 100644 --- a/src/gui/guiConst.cpp +++ b/src/gui/guiConst.cpp @@ -389,6 +389,8 @@ const int availableSystems[]={ DIV_SYSTEM_PET, DIV_SYSTEM_VIC20, DIV_SYSTEM_VRC6, + DIV_SYSTEM_FDS, + DIV_SYSTEM_MMC5, 0 // don't remove this last one! }; diff --git a/src/gui/presets.cpp b/src/gui/presets.cpp index f92c2b35..e7b08081 100644 --- a/src/gui/presets.cpp +++ b/src/gui/presets.cpp @@ -241,6 +241,13 @@ void FurnaceGUI::initSystemPresets() { 0 } )); + cat.systems.push_back(FurnaceGUISysDef( + "NES with MMC5", { + DIV_SYSTEM_NES, 64, 0, 0, + DIV_SYSTEM_MMC5, 64, 0, 0, + 0 + } + )); cat.systems.push_back(FurnaceGUISysDef( "NES with Sunsoft 5B", { DIV_SYSTEM_NES, 64, 0, 0, @@ -269,6 +276,13 @@ void FurnaceGUI::initSystemPresets() { 0 } )); + cat.systems.push_back(FurnaceGUISysDef( + "Famicom Disk System", { + DIV_SYSTEM_NES, 64, 0, 0, + DIV_SYSTEM_FDS, 64, 0, 0, + 0 + } + )); cat.systems.push_back(FurnaceGUISysDef( "Mattel Intellivision", { DIV_SYSTEM_AY8910, 64, 0, 48, diff --git a/src/gui/sysConf.cpp b/src/gui/sysConf.cpp index f1f25097..1bc60c7c 100644 --- a/src/gui/sysConf.cpp +++ b/src/gui/sysConf.cpp @@ -148,6 +148,8 @@ void FurnaceGUI::drawSysConf(int i) { break; case DIV_SYSTEM_NES: case DIV_SYSTEM_VRC6: + case DIV_SYSTEM_FDS: + case DIV_SYSTEM_MMC5: if (ImGui::RadioButton("NTSC (1.79MHz)",flags==0)) { e->setSysFlags(i,0,restart); updateWindowTitle();