Qt: Add option to toggle forceGbp mode
Vicki Pfau vi@endrift.com
Sun, 22 Nov 2020 01:11:24 -0800
3 files changed,
20 insertions(+),
10 deletions(-)
M
CHANGES
→
CHANGES
@@ -3,6 +3,7 @@ Features:
- e-Reader card scanning - WebP and APNG recording - Separate overrides for GBC games that can also run on SGB or regular GB + - Game Boy Player features can be enabled by default for all compatible games - Mute option in homebrew ports - Status indicators for fast-forward and mute in homebrew ports - Read-only support for MBC6 flash memory
M
src/platform/qt/SettingsView.cpp
→
src/platform/qt/SettingsView.cpp
@@ -418,6 +418,7 @@ saveSetting("useDiscordPresence", m_ui.useDiscordPresence);
saveSetting("gba.audioHle", m_ui.audioHle); saveSetting("dynamicTitle", m_ui.dynamicTitle); saveSetting("videoScale", m_ui.videoScale); + saveSetting("gba.forceGbp", m_ui.forceGbp); if (m_ui.audioBufferSize->currentText().toInt() > 8192) { m_ui.audioBufferSize->setCurrentText("8192");@@ -607,6 +608,7 @@ loadSetting("logFile", m_ui.logFile);
loadSetting("useDiscordPresence", m_ui.useDiscordPresence); loadSetting("gba.audioHle", m_ui.audioHle); loadSetting("dynamicTitle", m_ui.dynamicTitle); + loadSetting("gba.forceGbp", m_ui.forceGbp); m_ui.libraryStyle->setCurrentIndex(loadSetting("libraryStyle").toInt());
M
src/platform/qt/SettingsView.ui
→
src/platform/qt/SettingsView.ui
@@ -873,21 +873,21 @@ <string>Preload entire ROM into memory</string>
</property> </widget> </item> - <item row="9" column="0" colspan="2"> + <item row="10" column="0" colspan="2"> <widget class="Line" name="line_2"> <property name="orientation"> <enum>Qt::Horizontal</enum> </property> </widget> </item> - <item row="10" column="0"> + <item row="11" column="0"> <widget class="QLabel" name="label_24"> <property name="text"> <string>Savestate extra data:</string> </property> </widget> </item> - <item row="10" column="1"> + <item row="11" column="1"> <widget class="QCheckBox" name="saveStateScreenshot"> <property name="text"> <string>Screenshot</string>@@ -897,7 +897,7 @@ <bool>true</bool>
</property> </widget> </item> - <item row="11" column="1"> + <item row="12" column="1"> <widget class="QCheckBox" name="saveStateSave"> <property name="text"> <string>Save data</string>@@ -907,7 +907,7 @@ <bool>true</bool>
</property> </widget> </item> - <item row="12" column="1"> + <item row="13" column="1"> <widget class="QCheckBox" name="saveStateCheats"> <property name="text"> <string>Cheat codes</string>@@ -917,21 +917,21 @@ <bool>true</bool>
</property> </widget> </item> - <item row="13" column="0" colspan="2"> + <item row="14" column="0" colspan="2"> <widget class="Line" name="line_9"> <property name="orientation"> <enum>Qt::Horizontal</enum> </property> </widget> </item> - <item row="14" column="0"> + <item row="15" column="0"> <widget class="QLabel" name="label_25"> <property name="text"> <string>Load extra data:</string> </property> </widget> </item> - <item row="14" column="1"> + <item row="15" column="1"> <widget class="QCheckBox" name="loadStateScreenshot"> <property name="text"> <string>Screenshot</string>@@ -941,17 +941,24 @@ <bool>true</bool>
</property> </widget> </item> - <item row="15" column="1"> + <item row="16" column="1"> <widget class="QCheckBox" name="loadStateSave"> <property name="text"> <string>Save data</string> </property> </widget> </item> - <item row="16" column="1"> + <item row="17" column="1"> <widget class="QCheckBox" name="loadStateCheats"> <property name="text"> <string>Cheat codes</string> + </property> + </widget> + </item> + <item row="9" column="1"> + <widget class="QCheckBox" name="forceGbp"> + <property name="text"> + <string>Enable Game Boy Player features by default</string> </property> </widget> </item>