Qt: Move fast boot/fast forward to console settings
Makes more sense there, and matches Android.
This commit is contained in:
parent
f4aa5e1b98
commit
13d58d8ed0
|
@ -3960,18 +3960,10 @@ void FullscreenUI::DrawBIOSSettingsPage()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
MenuHeading(FSUI_CSTR("Options"));
|
||||||
|
|
||||||
DrawFolderSetting(bsi, FSUI_ICONSTR(ICON_FA_FOLDER, "BIOS Directory"), "BIOS", "SearchDirectory", EmuFolders::Bios);
|
DrawFolderSetting(bsi, FSUI_ICONSTR(ICON_FA_FOLDER, "BIOS Directory"), "BIOS", "SearchDirectory", EmuFolders::Bios);
|
||||||
|
|
||||||
MenuHeading(FSUI_CSTR("Patches"));
|
|
||||||
|
|
||||||
DrawToggleSetting(bsi, FSUI_ICONSTR(ICON_FA_BOLT, "Enable Fast Boot"),
|
|
||||||
FSUI_CSTR("Patches the BIOS to skip the boot animation. Safe to enable."), "BIOS", "PatchFastBoot",
|
|
||||||
Settings::DEFAULT_FAST_BOOT_VALUE);
|
|
||||||
DrawToggleSetting(bsi, FSUI_ICONSTR(ICON_FA_FAST_FORWARD, "Fast Forward Boot"),
|
|
||||||
FSUI_CSTR("Fast forwards through the early loading process when fast booting, saving time. Results "
|
|
||||||
"may vary between games."),
|
|
||||||
"BIOS", "FastForwardBoot", false,
|
|
||||||
GetEffectiveBoolSetting(bsi, "BIOS", "PatchFastBoot", Settings::DEFAULT_FAST_BOOT_VALUE));
|
|
||||||
DrawToggleSetting(bsi, FSUI_ICONSTR(ICON_FA_SCROLL, "Enable TTY Logging"),
|
DrawToggleSetting(bsi, FSUI_ICONSTR(ICON_FA_SCROLL, "Enable TTY Logging"),
|
||||||
FSUI_CSTR("Logs BIOS calls to printf(). Not all games contain debugging messages."), "BIOS",
|
FSUI_CSTR("Logs BIOS calls to printf(). Not all games contain debugging messages."), "BIOS",
|
||||||
"TTYLogging", false);
|
"TTYLogging", false);
|
||||||
|
@ -4016,6 +4008,14 @@ void FullscreenUI::DrawConsoleSettingsPage()
|
||||||
DrawToggleSetting(bsi, FSUI_ICONSTR(ICON_FA_MAGIC, "Safe Mode"),
|
DrawToggleSetting(bsi, FSUI_ICONSTR(ICON_FA_MAGIC, "Safe Mode"),
|
||||||
FSUI_CSTR("Temporarily disables all enhancements, useful when testing."), "Main",
|
FSUI_CSTR("Temporarily disables all enhancements, useful when testing."), "Main",
|
||||||
"DisableAllEnhancements", false);
|
"DisableAllEnhancements", false);
|
||||||
|
DrawToggleSetting(bsi, FSUI_ICONSTR(ICON_FA_BOLT, "Enable Fast Boot"),
|
||||||
|
FSUI_CSTR("Patches the BIOS to skip the boot animation. Safe to enable."), "BIOS", "PatchFastBoot",
|
||||||
|
Settings::DEFAULT_FAST_BOOT_VALUE);
|
||||||
|
DrawToggleSetting(bsi, FSUI_ICONSTR(ICON_FA_FAST_FORWARD, "Fast Forward Boot"),
|
||||||
|
FSUI_CSTR("Fast forwards through the early loading process when fast booting, saving time. Results "
|
||||||
|
"may vary between games."),
|
||||||
|
"BIOS", "FastForwardBoot", false,
|
||||||
|
GetEffectiveBoolSetting(bsi, "BIOS", "PatchFastBoot", Settings::DEFAULT_FAST_BOOT_VALUE));
|
||||||
DrawToggleSetting(
|
DrawToggleSetting(
|
||||||
bsi, FSUI_ICONSTR(ICON_FA_MEMORY, "Enable 8MB RAM"),
|
bsi, FSUI_ICONSTR(ICON_FA_MEMORY, "Enable 8MB RAM"),
|
||||||
FSUI_CSTR("Enables an additional 6MB of RAM to obtain a total of 2+6 = 8MB, usually present on dev consoles."),
|
FSUI_CSTR("Enables an additional 6MB of RAM to obtain a total of 2+6 = 8MB, usually present on dev consoles."),
|
||||||
|
|
|
@ -21,10 +21,6 @@ BIOSSettingsWidget::BIOSSettingsWidget(SettingsWindow* dialog, QWidget* parent)
|
||||||
m_ui.setupUi(this);
|
m_ui.setupUi(this);
|
||||||
|
|
||||||
SettingWidgetBinder::BindWidgetToBoolSetting(sif, m_ui.enableTTYLogging, "BIOS", "TTYLogging", false);
|
SettingWidgetBinder::BindWidgetToBoolSetting(sif, m_ui.enableTTYLogging, "BIOS", "TTYLogging", false);
|
||||||
SettingWidgetBinder::BindWidgetToBoolSetting(sif, m_ui.fastBoot, "BIOS", "PatchFastBoot", false);
|
|
||||||
SettingWidgetBinder::BindWidgetToBoolSetting(sif, m_ui.fastForwardBoot, "BIOS", "FastForwardBoot", false);
|
|
||||||
|
|
||||||
connect(m_ui.fastBoot, &QCheckBox::checkStateChanged, this, &BIOSSettingsWidget::onFastBootChanged);
|
|
||||||
|
|
||||||
SettingWidgetBinder::BindWidgetToEnumSetting(sif, m_ui.pioDeviceType, "PIO", "DeviceType",
|
SettingWidgetBinder::BindWidgetToEnumSetting(sif, m_ui.pioDeviceType, "PIO", "DeviceType",
|
||||||
&Settings::ParsePIODeviceTypeName, &Settings::GetPIODeviceTypeModeName,
|
&Settings::ParsePIODeviceTypeName, &Settings::GetPIODeviceTypeModeName,
|
||||||
|
@ -36,28 +32,8 @@ BIOSSettingsWidget::BIOSSettingsWidget(SettingsWindow* dialog, QWidget* parent)
|
||||||
connect(m_ui.pioDeviceType, QOverload<int>::of(&QComboBox::currentIndexChanged), this,
|
connect(m_ui.pioDeviceType, QOverload<int>::of(&QComboBox::currentIndexChanged), this,
|
||||||
&BIOSSettingsWidget::onPIODeviceTypeChanged);
|
&BIOSSettingsWidget::onPIODeviceTypeChanged);
|
||||||
connect(m_ui.pioImagePathBrowse, &QPushButton::clicked, this, &BIOSSettingsWidget::onPIOImagePathBrowseClicked);
|
connect(m_ui.pioImagePathBrowse, &QPushButton::clicked, this, &BIOSSettingsWidget::onPIOImagePathBrowseClicked);
|
||||||
|
|
||||||
onFastBootChanged();
|
|
||||||
onPIODeviceTypeChanged();
|
onPIODeviceTypeChanged();
|
||||||
|
|
||||||
dialog->registerWidgetHelp(m_ui.fastBoot, tr("Fast Boot"), tr("Unchecked"),
|
|
||||||
tr("Patches the BIOS to skip the console's boot animation. Does not work with all games, "
|
|
||||||
"but usually safe to enable."));
|
|
||||||
dialog->registerWidgetHelp(m_ui.enableTTYLogging, tr("Enable TTY Logging"), tr("Unchecked"),
|
|
||||||
tr("Logs BIOS calls to printf(). Not all games contain debugging messages."));
|
|
||||||
dialog->registerWidgetHelp(m_ui.pioDeviceType, tr("Device Type"), tr("None"),
|
|
||||||
tr("Simulates a device plugged into the console's parallel port. Usually these are flash "
|
|
||||||
"cartridges, and require some sort of image dump to function."));
|
|
||||||
dialog->registerWidgetHelp(m_ui.pioImagePath, tr("Image Path"), tr("Empty"),
|
|
||||||
tr("Sets the path to the image used for flash cartridges."));
|
|
||||||
dialog->registerWidgetHelp(m_ui.pioSwitchActive, tr("Cartridge Switch On"), tr("Checked"),
|
|
||||||
tr("Simulates the position of the switch on the cartridge. Most cartridges require the "
|
|
||||||
"switch to be on for it to activate on startup."));
|
|
||||||
dialog->registerWidgetHelp(
|
|
||||||
m_ui.pioImageWrites, tr("Allow Image Writes"), tr("Unchecked"),
|
|
||||||
tr("Stores any images made to the cartridge's flash storage back to the host's file system. <strong>This will "
|
|
||||||
"overwrite your cartridge dump,</strong> you should ensure you have a backup first."));
|
|
||||||
|
|
||||||
connect(m_ui.imageNTSCJ, QOverload<int>::of(&QComboBox::currentIndexChanged), [this](int index) {
|
connect(m_ui.imageNTSCJ, QOverload<int>::of(&QComboBox::currentIndexChanged), [this](int index) {
|
||||||
if (m_dialog->isPerGameSettings() && index == 0)
|
if (m_dialog->isPerGameSettings() && index == 0)
|
||||||
{
|
{
|
||||||
|
@ -115,13 +91,20 @@ BIOSSettingsWidget::BIOSSettingsWidget(SettingsWindow* dialog, QWidget* parent)
|
||||||
|
|
||||||
refreshList();
|
refreshList();
|
||||||
|
|
||||||
m_dialog->registerWidgetHelp(m_ui.fastBoot, tr("Fast Boot"), tr("Unchecked"),
|
dialog->registerWidgetHelp(m_ui.pioDeviceType, tr("Device Type"), tr("None"),
|
||||||
tr("Patches the BIOS to skip the boot animation. Safe to enable."));
|
tr("Simulates a device plugged into the console's parallel port. Usually these are flash "
|
||||||
m_dialog->registerWidgetHelp(m_ui.fastForwardBoot, tr("Fast Forward Boot"), tr("Unchecked"),
|
"cartridges, and require some sort of image dump to function."));
|
||||||
tr("Fast forwards through the early loading process when fast booting, saving time. "
|
dialog->registerWidgetHelp(m_ui.pioImagePath, tr("Image Path"), tr("Empty"),
|
||||||
"Results may vary between games."));
|
tr("Sets the path to the image used for flash cartridges."));
|
||||||
m_dialog->registerWidgetHelp(m_ui.enableTTYLogging, tr("Enable TTY Logging"), tr("Unchecked"),
|
dialog->registerWidgetHelp(m_ui.pioSwitchActive, tr("Cartridge Switch On"), tr("Checked"),
|
||||||
tr("Logs BIOS calls to printf(). Not all games contain debugging messages."));
|
tr("Simulates the position of the switch on the cartridge. Most cartridges require the "
|
||||||
|
"switch to be on for it to activate on startup."));
|
||||||
|
dialog->registerWidgetHelp(
|
||||||
|
m_ui.pioImageWrites, tr("Allow Image Writes"), tr("Unchecked"),
|
||||||
|
tr("Stores any images made to the cartridge's flash storage back to the host's file system. <strong>This will "
|
||||||
|
"overwrite your cartridge dump,</strong> you should ensure you have a backup first."));
|
||||||
|
dialog->registerWidgetHelp(m_ui.enableTTYLogging, tr("Enable TTY Logging"), tr("Unchecked"),
|
||||||
|
tr("Logs BIOS calls to printf(). Not all games contain debugging messages."));
|
||||||
}
|
}
|
||||||
|
|
||||||
BIOSSettingsWidget::~BIOSSettingsWidget() = default;
|
BIOSSettingsWidget::~BIOSSettingsWidget() = default;
|
||||||
|
@ -141,13 +124,6 @@ void BIOSSettingsWidget::refreshList()
|
||||||
m_dialog->isPerGameSettings());
|
m_dialog->isPerGameSettings());
|
||||||
}
|
}
|
||||||
|
|
||||||
void BIOSSettingsWidget::onFastBootChanged()
|
|
||||||
{
|
|
||||||
const bool fast_boot_enabled =
|
|
||||||
m_dialog->getEffectiveBoolValue("BIOS", "PatchFastBoot", Settings::DEFAULT_FAST_BOOT_VALUE);
|
|
||||||
m_ui.fastForwardBoot->setEnabled(fast_boot_enabled);
|
|
||||||
}
|
|
||||||
|
|
||||||
void BIOSSettingsWidget::populateDropDownForRegion(ConsoleRegion region, QComboBox* cb,
|
void BIOSSettingsWidget::populateDropDownForRegion(ConsoleRegion region, QComboBox* cb,
|
||||||
std::vector<std::pair<std::string, const BIOS::ImageInfo*>>& images,
|
std::vector<std::pair<std::string, const BIOS::ImageInfo*>>& images,
|
||||||
bool per_game)
|
bool per_game)
|
||||||
|
|
|
@ -29,7 +29,6 @@ public:
|
||||||
|
|
||||||
private Q_SLOTS:
|
private Q_SLOTS:
|
||||||
void refreshList();
|
void refreshList();
|
||||||
void onFastBootChanged();
|
|
||||||
void onPIODeviceTypeChanged();
|
void onPIODeviceTypeChanged();
|
||||||
void onPIOImagePathBrowseClicked();
|
void onPIOImagePathBrowseClicked();
|
||||||
|
|
||||||
|
|
|
@ -29,20 +29,6 @@
|
||||||
<string>BIOS Selection</string>
|
<string>BIOS Selection</string>
|
||||||
</property>
|
</property>
|
||||||
<layout class="QGridLayout" name="gridLayout">
|
<layout class="QGridLayout" name="gridLayout">
|
||||||
<item row="0" column="0">
|
|
||||||
<widget class="QLabel" name="label">
|
|
||||||
<property name="text">
|
|
||||||
<string>NTSC-J (Japan):</string>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
<item row="1" column="0">
|
|
||||||
<widget class="QLabel" name="label_2">
|
|
||||||
<property name="text">
|
|
||||||
<string>NTSC-U/C (US/Canada):</string>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
<item row="1" column="1">
|
<item row="1" column="1">
|
||||||
<widget class="QComboBox" name="imageNTSCU">
|
<widget class="QComboBox" name="imageNTSCU">
|
||||||
<property name="sizePolicy">
|
<property name="sizePolicy">
|
||||||
|
@ -53,13 +39,10 @@
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item row="2" column="1">
|
<item row="1" column="0">
|
||||||
<widget class="QComboBox" name="imagePAL">
|
<widget class="QLabel" name="label_2">
|
||||||
<property name="sizePolicy">
|
<property name="text">
|
||||||
<sizepolicy hsizetype="Expanding" vsizetype="Fixed">
|
<string>NTSC-U/C (US/Canada):</string>
|
||||||
<horstretch>0</horstretch>
|
|
||||||
<verstretch>0</verstretch>
|
|
||||||
</sizepolicy>
|
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
|
@ -80,6 +63,23 @@
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
|
<item row="0" column="0">
|
||||||
|
<widget class="QLabel" name="label">
|
||||||
|
<property name="text">
|
||||||
|
<string>NTSC-J (Japan):</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item row="2" column="1">
|
||||||
|
<widget class="QComboBox" name="imagePAL">
|
||||||
|
<property name="sizePolicy">
|
||||||
|
<sizepolicy hsizetype="Expanding" vsizetype="Fixed">
|
||||||
|
<horstretch>0</horstretch>
|
||||||
|
<verstretch>0</verstretch>
|
||||||
|
</sizepolicy>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
</layout>
|
</layout>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
|
@ -140,36 +140,6 @@
|
||||||
</layout>
|
</layout>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item>
|
|
||||||
<widget class="QGroupBox" name="groupBox_2">
|
|
||||||
<property name="title">
|
|
||||||
<string>Options and Patches</string>
|
|
||||||
</property>
|
|
||||||
<layout class="QGridLayout" name="gridLayout_2">
|
|
||||||
<item row="0" column="0">
|
|
||||||
<widget class="QCheckBox" name="fastBoot">
|
|
||||||
<property name="text">
|
|
||||||
<string>Fast Boot</string>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
<item row="1" column="0">
|
|
||||||
<widget class="QCheckBox" name="enableTTYLogging">
|
|
||||||
<property name="text">
|
|
||||||
<string>Enable TTY Logging</string>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
<item row="0" column="1">
|
|
||||||
<widget class="QCheckBox" name="fastForwardBoot">
|
|
||||||
<property name="text">
|
|
||||||
<string>Fast Forward Boot</string>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
</layout>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
<item>
|
<item>
|
||||||
<widget class="QGroupBox" name="pioGroupBox">
|
<widget class="QGroupBox" name="pioGroupBox">
|
||||||
<property name="title">
|
<property name="title">
|
||||||
|
@ -228,6 +198,22 @@
|
||||||
</layout>
|
</layout>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
|
<item>
|
||||||
|
<widget class="QGroupBox" name="groupBox_2">
|
||||||
|
<property name="title">
|
||||||
|
<string>Options</string>
|
||||||
|
</property>
|
||||||
|
<layout class="QGridLayout" name="gridLayout_2">
|
||||||
|
<item row="0" column="0">
|
||||||
|
<widget class="QCheckBox" name="enableTTYLogging">
|
||||||
|
<property name="text">
|
||||||
|
<string>Enable TTY Logging</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
</layout>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
<item>
|
<item>
|
||||||
<spacer name="verticalSpacer">
|
<spacer name="verticalSpacer">
|
||||||
<property name="orientation">
|
<property name="orientation">
|
||||||
|
|
|
@ -48,7 +48,12 @@ ConsoleSettingsWidget::ConsoleSettingsWidget(SettingsWindow* dialog, QWidget* pa
|
||||||
|
|
||||||
SettingWidgetBinder::BindWidgetToEnumSetting(sif, m_ui.region, "Console", "Region", &Settings::ParseConsoleRegionName,
|
SettingWidgetBinder::BindWidgetToEnumSetting(sif, m_ui.region, "Console", "Region", &Settings::ParseConsoleRegionName,
|
||||||
&Settings::GetConsoleRegionName, Settings::DEFAULT_CONSOLE_REGION);
|
&Settings::GetConsoleRegionName, Settings::DEFAULT_CONSOLE_REGION);
|
||||||
|
SettingWidgetBinder::BindWidgetToBoolSetting(sif, m_ui.fastBoot, "BIOS", "PatchFastBoot", false);
|
||||||
|
SettingWidgetBinder::BindWidgetToBoolSetting(sif, m_ui.fastForwardBoot, "BIOS", "FastForwardBoot", false);
|
||||||
SettingWidgetBinder::BindWidgetToBoolSetting(sif, m_ui.enable8MBRAM, "Console", "Enable8MBRAM", false);
|
SettingWidgetBinder::BindWidgetToBoolSetting(sif, m_ui.enable8MBRAM, "Console", "Enable8MBRAM", false);
|
||||||
|
connect(m_ui.fastBoot, &QCheckBox::checkStateChanged, this, &ConsoleSettingsWidget::onFastBootChanged);
|
||||||
|
onFastBootChanged();
|
||||||
|
|
||||||
SettingWidgetBinder::BindWidgetToEnumSetting(sif, m_ui.cpuExecutionMode, "CPU", "ExecutionMode",
|
SettingWidgetBinder::BindWidgetToEnumSetting(sif, m_ui.cpuExecutionMode, "CPU", "ExecutionMode",
|
||||||
&Settings::ParseCPUExecutionMode, &Settings::GetCPUExecutionModeName,
|
&Settings::ParseCPUExecutionMode, &Settings::GetCPUExecutionModeName,
|
||||||
Settings::DEFAULT_CPU_EXECUTION_MODE);
|
Settings::DEFAULT_CPU_EXECUTION_MODE);
|
||||||
|
@ -76,6 +81,18 @@ ConsoleSettingsWidget::ConsoleSettingsWidget(SettingsWindow* dialog, QWidget* pa
|
||||||
|
|
||||||
dialog->registerWidgetHelp(m_ui.region, tr("Region"), tr("Auto-Detect"),
|
dialog->registerWidgetHelp(m_ui.region, tr("Region"), tr("Auto-Detect"),
|
||||||
tr("Determines the emulated hardware type."));
|
tr("Determines the emulated hardware type."));
|
||||||
|
m_dialog->registerWidgetHelp(m_ui.fastBoot, tr("Fast Boot"), tr("Unchecked"),
|
||||||
|
tr("Skips the boot animation. Safe to enable."));
|
||||||
|
m_dialog->registerWidgetHelp(m_ui.fastForwardBoot, tr("Fast Forward Boot"), tr("Unchecked"),
|
||||||
|
tr("Fast forwards through the early loading process when fast booting, saving time. "
|
||||||
|
"Results may vary between games."));
|
||||||
|
dialog->registerWidgetHelp(
|
||||||
|
m_ui.enable8MBRAM, tr("Enable 8MB RAM (Dev Console)"), tr("Unchecked"),
|
||||||
|
tr("Enables an additional 6MB of RAM to obtain a total of 2+6 = 8MB, usually present on dev consoles. Games have "
|
||||||
|
"to use a larger heap size for "
|
||||||
|
"this additional RAM to be usable. Titles which rely on memory mirrors may break, so it should only be used "
|
||||||
|
"with compatible mods."));
|
||||||
|
|
||||||
dialog->registerWidgetHelp(m_ui.cpuExecutionMode, tr("Execution Mode"), tr("Recompiler (Fastest)"),
|
dialog->registerWidgetHelp(m_ui.cpuExecutionMode, tr("Execution Mode"), tr("Recompiler (Fastest)"),
|
||||||
tr("Determines how the emulated CPU executes instructions."));
|
tr("Determines how the emulated CPU executes instructions."));
|
||||||
dialog->registerWidgetHelp(m_ui.enableCPUClockSpeedControl,
|
dialog->registerWidgetHelp(m_ui.enableCPUClockSpeedControl,
|
||||||
|
@ -87,16 +104,7 @@ ConsoleSettingsWidget::ConsoleSettingsWidget(SettingsWindow* dialog, QWidget* pa
|
||||||
tr("Simulates stalls in the recompilers when the emulated CPU would have to fetch "
|
tr("Simulates stalls in the recompilers when the emulated CPU would have to fetch "
|
||||||
"instructions into its cache. Makes games run closer to their console framerate, at a "
|
"instructions into its cache. Makes games run closer to their console framerate, at a "
|
||||||
"small cost to performance. Interpreter mode always simulates the instruction cache."));
|
"small cost to performance. Interpreter mode always simulates the instruction cache."));
|
||||||
dialog->registerWidgetHelp(
|
|
||||||
m_ui.enable8MBRAM, tr("Enable 8MB RAM (Dev Console)"), tr("Unchecked"),
|
|
||||||
tr("Enables an additional 6MB of RAM to obtain a total of 2+6 = 8MB, usually present on dev consoles. Games have "
|
|
||||||
"to use a larger heap size for "
|
|
||||||
"this additional RAM to be usable. Titles which rely on memory mirrors may break, so it should only be used "
|
|
||||||
"with compatible mods."));
|
|
||||||
dialog->registerWidgetHelp(
|
|
||||||
m_ui.cdromLoadImageToRAM, tr("Preload Image to RAM"), tr("Unchecked"),
|
|
||||||
tr("Loads the game image into RAM. Useful for network paths that may become unreliable during gameplay. In some "
|
|
||||||
"cases also eliminates stutter when games initiate audio track playback."));
|
|
||||||
dialog->registerWidgetHelp(
|
dialog->registerWidgetHelp(
|
||||||
m_ui.cdromReadSpeedup, tr("CD-ROM Read Speedup"), tr("None (Double Speed)"),
|
m_ui.cdromReadSpeedup, tr("CD-ROM Read Speedup"), tr("None (Double Speed)"),
|
||||||
tr("Speeds up CD-ROM reads by the specified factor. Only applies to double-speed reads, and is ignored when audio "
|
tr("Speeds up CD-ROM reads by the specified factor. Only applies to double-speed reads, and is ignored when audio "
|
||||||
|
@ -137,6 +145,13 @@ ConsoleSettingsWidget::ConsoleSettingsWidget(SettingsWindow* dialog, QWidget* pa
|
||||||
|
|
||||||
ConsoleSettingsWidget::~ConsoleSettingsWidget() = default;
|
ConsoleSettingsWidget::~ConsoleSettingsWidget() = default;
|
||||||
|
|
||||||
|
void ConsoleSettingsWidget::onFastBootChanged()
|
||||||
|
{
|
||||||
|
const bool fast_boot_enabled =
|
||||||
|
m_dialog->getEffectiveBoolValue("BIOS", "PatchFastBoot", Settings::DEFAULT_FAST_BOOT_VALUE);
|
||||||
|
m_ui.fastForwardBoot->setEnabled(fast_boot_enabled);
|
||||||
|
}
|
||||||
|
|
||||||
void ConsoleSettingsWidget::updateRecompilerICacheEnabled()
|
void ConsoleSettingsWidget::updateRecompilerICacheEnabled()
|
||||||
{
|
{
|
||||||
const CPUExecutionMode mode =
|
const CPUExecutionMode mode =
|
||||||
|
|
|
@ -18,6 +18,7 @@ public:
|
||||||
~ConsoleSettingsWidget();
|
~ConsoleSettingsWidget();
|
||||||
|
|
||||||
private Q_SLOTS:
|
private Q_SLOTS:
|
||||||
|
void onFastBootChanged();
|
||||||
void updateRecompilerICacheEnabled();
|
void updateRecompilerICacheEnabled();
|
||||||
void onEnableCPUClockSpeedControlChecked(int state);
|
void onEnableCPUClockSpeedControlChecked(int state);
|
||||||
void onCPUClockSpeedValueChanged(int value);
|
void onCPUClockSpeedValueChanged(int value);
|
||||||
|
|
|
@ -7,7 +7,7 @@
|
||||||
<x>0</x>
|
<x>0</x>
|
||||||
<y>0</y>
|
<y>0</y>
|
||||||
<width>648</width>
|
<width>648</width>
|
||||||
<height>456</height>
|
<height>459</height>
|
||||||
</rect>
|
</rect>
|
||||||
</property>
|
</property>
|
||||||
<layout class="QVBoxLayout" name="verticalLayout">
|
<layout class="QVBoxLayout" name="verticalLayout">
|
||||||
|
@ -42,6 +42,20 @@
|
||||||
<item row="1" column="0" colspan="2">
|
<item row="1" column="0" colspan="2">
|
||||||
<layout class="QGridLayout" name="gridLayout_2">
|
<layout class="QGridLayout" name="gridLayout_2">
|
||||||
<item row="0" column="0">
|
<item row="0" column="0">
|
||||||
|
<widget class="QCheckBox" name="fastBoot">
|
||||||
|
<property name="text">
|
||||||
|
<string>Fast Boot</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item row="0" column="1">
|
||||||
|
<widget class="QCheckBox" name="fastForwardBoot">
|
||||||
|
<property name="text">
|
||||||
|
<string>Fast Forward Boot</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item row="1" column="0">
|
||||||
<widget class="QCheckBox" name="enable8MBRAM">
|
<widget class="QCheckBox" name="enable8MBRAM">
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>Enable 8MB RAM (Dev Console)</string>
|
<string>Enable 8MB RAM (Dev Console)</string>
|
||||||
|
|
|
@ -99,10 +99,10 @@ void SettingsWindow::addPages()
|
||||||
"recursive/non-recursive."));
|
"recursive/non-recursive."));
|
||||||
}
|
}
|
||||||
|
|
||||||
addWidget(
|
addWidget(m_bios_settings = new BIOSSettingsWidget(this, m_ui.settingsContainer), tr("BIOS"),
|
||||||
m_bios_settings = new BIOSSettingsWidget(this, m_ui.settingsContainer), tr("BIOS"), QStringLiteral("chip-line"),
|
QStringLiteral("chip-line"),
|
||||||
tr("<strong>BIOS Settings</strong><hr>These options control which BIOS is used and how it will be "
|
tr("<strong>BIOS Settings</strong><hr>These options control which BIOS and expansion port is "
|
||||||
"patched.<br><br>Mouse over an option for additional information, and Shift+Wheel to scroll this panel."));
|
"used.<br><br>Mouse over an option for additional information, and Shift+Wheel to scroll this panel."));
|
||||||
addWidget(
|
addWidget(
|
||||||
m_console_settings = new ConsoleSettingsWidget(this, m_ui.settingsContainer), tr("Console"),
|
m_console_settings = new ConsoleSettingsWidget(this, m_ui.settingsContainer), tr("Console"),
|
||||||
QStringLiteral("chip-2-line"),
|
QStringLiteral("chip-2-line"),
|
||||||
|
|
Loading…
Reference in New Issue