|
|
|
|
@ -66,7 +66,7 @@ SettingsWindow::SettingsWindow(const GameList::Entry* entry, std::unique_ptr<INI
|
|
|
|
|
setWindowFlags(windowFlags() & ~Qt::WindowContextHelpButtonHint);
|
|
|
|
|
|
|
|
|
|
addWidget(m_game_summary = new GameSummaryWidget(entry, this, m_ui.settingsContainer), tr("Summary"),
|
|
|
|
|
":/icons/monochrome/svg/file-list-line.svg"_L1,
|
|
|
|
|
u":/icons/monochrome/svg/file-list-line.svg"_s,
|
|
|
|
|
tr("<strong>Summary</strong><hr>This page shows information about the selected game, and allows you to "
|
|
|
|
|
"validate your disc was dumped correctly."));
|
|
|
|
|
addPages();
|
|
|
|
|
@ -93,7 +93,7 @@ void SettingsWindow::addPages()
|
|
|
|
|
{
|
|
|
|
|
addWidget(
|
|
|
|
|
new InterfaceSettingsWidget(this, m_ui.settingsContainer), tr("Interface"),
|
|
|
|
|
":/icons/monochrome/svg/settings-3-line.svg"_L1,
|
|
|
|
|
u":/icons/monochrome/svg/settings-3-line.svg"_s,
|
|
|
|
|
tr("<strong>Interface Settings</strong><hr>These options control how the emulator looks and "
|
|
|
|
|
"behaves.<br><br>Mouse over an option for additional information, and Shift+Wheel to scroll this panel."));
|
|
|
|
|
|
|
|
|
|
@ -101,36 +101,36 @@ void SettingsWindow::addPages()
|
|
|
|
|
{
|
|
|
|
|
addWidget(
|
|
|
|
|
m_game_list_settings = new GameListSettingsWidget(this, m_ui.settingsContainer), tr("Game List"),
|
|
|
|
|
":/icons/monochrome/svg/folder-open-line.svg"_L1,
|
|
|
|
|
u":/icons/monochrome/svg/folder-open-line.svg"_s,
|
|
|
|
|
tr("<strong>Game List Settings</strong><hr>The list above shows the directories which will be searched by "
|
|
|
|
|
"DuckStation to populate the game list. Search directories can be added, removed, and switched to "
|
|
|
|
|
"recursive/non-recursive."));
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
addWidget(new BIOSSettingsWidget(this, m_ui.settingsContainer), tr("BIOS"), ":/icons/monochrome/svg/chip-line.svg"_L1,
|
|
|
|
|
addWidget(new BIOSSettingsWidget(this, m_ui.settingsContainer), tr("BIOS"), u":/icons/monochrome/svg/chip-line.svg"_s,
|
|
|
|
|
tr("<strong>BIOS Settings</strong><hr>These options control which BIOS and expansion port is "
|
|
|
|
|
"used.<br><br>Mouse over an option for additional information, and Shift+Wheel to scroll this panel."));
|
|
|
|
|
addWidget(
|
|
|
|
|
new ConsoleSettingsWidget(this, m_ui.settingsContainer), tr("Console"),
|
|
|
|
|
":/icons/monochrome/svg/emulation-line.svg"_L1,
|
|
|
|
|
u":/icons/monochrome/svg/emulation-line.svg"_s,
|
|
|
|
|
tr("<strong>Console Settings</strong><hr>These options determine the configuration of the simulated "
|
|
|
|
|
"console.<br><br>Mouse over an option for additional information, and Shift+Wheel to scroll this panel."));
|
|
|
|
|
addWidget(
|
|
|
|
|
new EmulationSettingsWidget(this, m_ui.settingsContainer), tr("Emulation"),
|
|
|
|
|
":/icons/monochrome/svg/chip-2-line.svg"_L1,
|
|
|
|
|
u":/icons/monochrome/svg/chip-2-line.svg"_s,
|
|
|
|
|
tr("<strong>Emulation Settings</strong><hr>These options determine the speed and runahead behavior of the "
|
|
|
|
|
"system.<br><br>Mouse over an option for additional information, and Shift+Wheel to scroll this panel."));
|
|
|
|
|
|
|
|
|
|
if (isPerGameSettings())
|
|
|
|
|
{
|
|
|
|
|
addWidget(new GamePatchSettingsWidget(this, m_ui.settingsContainer), tr("Patches"),
|
|
|
|
|
":/icons/monochrome/svg/sparkling-line.svg"_L1,
|
|
|
|
|
u":/icons/monochrome/svg/sparkling-line.svg"_s,
|
|
|
|
|
tr("<strong>Patches</strong><hr>This section allows you to select optional patches to apply to the game, "
|
|
|
|
|
"which may provide performance, visual, or gameplay improvements. Activating game patches can cause "
|
|
|
|
|
"unpredictable behavior, crashing, soft-locks, or broken saved games. Use patches at your own risk, "
|
|
|
|
|
"no support will be provided to users who have enabled game patches."));
|
|
|
|
|
addWidget(new GameCheatSettingsWidget(this, m_ui.settingsContainer), tr("Cheats"),
|
|
|
|
|
":/icons/monochrome/svg/cheats-line.svg"_L1,
|
|
|
|
|
u":/icons/monochrome/svg/cheats-line.svg"_s,
|
|
|
|
|
tr("<strong>Cheats</strong><hr>This section allows you to select which cheats you wish to enable. "
|
|
|
|
|
"<strong>Using cheats can have unpredictable effects on games, causing crashes, graphical glitches, "
|
|
|
|
|
"and corrupted saves.</strong> Cheats also persist through save states even after being disabled, "
|
|
|
|
|
@ -139,34 +139,34 @@ void SettingsWindow::addPages()
|
|
|
|
|
|
|
|
|
|
addWidget(
|
|
|
|
|
new MemoryCardSettingsWidget(this, m_ui.settingsContainer), tr("Memory Cards"),
|
|
|
|
|
":/icons/monochrome/svg/memcard-line.svg"_L1,
|
|
|
|
|
u":/icons/monochrome/svg/memcard-line.svg"_s,
|
|
|
|
|
tr("<strong>Memory Card Settings</strong><hr>This page lets you control what mode the memory card emulation will "
|
|
|
|
|
"function in, and where the images for these cards will be stored on disk."));
|
|
|
|
|
GraphicsSettingsWidget* graphics_settings;
|
|
|
|
|
addWidget(graphics_settings = new GraphicsSettingsWidget(this, m_ui.settingsContainer), tr("Graphics"),
|
|
|
|
|
":/icons/monochrome/svg/image-fill.svg"_L1,
|
|
|
|
|
u":/icons/monochrome/svg/image-fill.svg"_s,
|
|
|
|
|
tr("<strong>Graphics Settings</strong><hr>These options control how the graphics of the emulated console "
|
|
|
|
|
"are rendered. Not all options are available for the software renderer. Mouse over each option for "
|
|
|
|
|
"additional information, and Shift+Wheel to scroll this panel."));
|
|
|
|
|
//: Translators may want to shorten On-Screen Display to "OSD".
|
|
|
|
|
addWidget(new OSDSettingsWidget(this, m_ui.settingsContainer), tr("On-Screen Display"),
|
|
|
|
|
":/icons/monochrome/svg/numbers-fill.svg"_L1,
|
|
|
|
|
u":/icons/monochrome/svg/numbers-fill.svg"_s,
|
|
|
|
|
tr("<strong>On-Screen Display Settings</strong><hr>These options determine the behavior of the messages "
|
|
|
|
|
"that are displayed while content is running."));
|
|
|
|
|
addWidget(
|
|
|
|
|
new PostProcessingSettingsWidget(this, m_ui.settingsContainer), tr("Post-Processing"),
|
|
|
|
|
":/icons/monochrome/svg/sun-fill.svg"_L1,
|
|
|
|
|
u":/icons/monochrome/svg/sun-fill.svg"_s,
|
|
|
|
|
tr("<strong>Post-Processing Settings</strong><hr>Post processing allows you to alter the appearance of the image "
|
|
|
|
|
"displayed on the screen with various filters. Shaders will be executed in sequence. Additional shaders can be "
|
|
|
|
|
"downloaded from <a href=\"%1\">%1</a>.")
|
|
|
|
|
.arg("https://github.com/stenzek/emu-shaders"));
|
|
|
|
|
addWidget(
|
|
|
|
|
new AudioSettingsWidget(this, m_ui.settingsContainer), tr("Audio"), ":/icons/monochrome/svg/volume-up-line.svg"_L1,
|
|
|
|
|
new AudioSettingsWidget(this, m_ui.settingsContainer), tr("Audio"), u":/icons/monochrome/svg/volume-up-line.svg"_s,
|
|
|
|
|
tr("<strong>Audio Settings</strong><hr>These options control the audio output of the console. Mouse over an option "
|
|
|
|
|
"for additional information."));
|
|
|
|
|
addWidget(
|
|
|
|
|
new AchievementSettingsWidget(this, m_ui.settingsContainer), tr("Achievements"),
|
|
|
|
|
":/icons/monochrome/svg/trophy-line.svg"_L1,
|
|
|
|
|
u":/icons/monochrome/svg/trophy-line.svg"_s,
|
|
|
|
|
tr("<strong>Achievement Settings</strong><hr>DuckStation uses RetroAchievements as an achievement database and "
|
|
|
|
|
"for tracking progress. To use achievements, please sign up for an account at <a href=\"%1\">%1</a>. To view "
|
|
|
|
|
"the achievement list in-game, press the hotkey for <strong>Open Pause Menu</strong> and select "
|
|
|
|
|
@ -174,14 +174,14 @@ void SettingsWindow::addPages()
|
|
|
|
|
"Shift+Wheel to scroll this panel.")
|
|
|
|
|
.arg("https://retroachievements.org/"));
|
|
|
|
|
addWidget(new CaptureSettingsWidget(this, m_ui.settingsContainer), tr("Capture"),
|
|
|
|
|
":/icons/monochrome/svg/vidicon-line.svg"_L1,
|
|
|
|
|
u":/icons/monochrome/svg/vidicon-line.svg"_s,
|
|
|
|
|
tr("<strong>Capture Settings</strong><hr>These options determine how screenshots and videos are captured "
|
|
|
|
|
"by the application."));
|
|
|
|
|
|
|
|
|
|
if (!isPerGameSettings())
|
|
|
|
|
{
|
|
|
|
|
addWidget(new AdvancedSettingsWidget(this, m_ui.settingsContainer), tr("Advanced"),
|
|
|
|
|
":/icons/monochrome/svg/alert-line.svg"_L1,
|
|
|
|
|
u":/icons/monochrome/svg/alert-line.svg"_s,
|
|
|
|
|
tr("<strong>Advanced Settings</strong><hr>These options control logging and internal behavior of the "
|
|
|
|
|
"emulator. Mouse over an option for additional information, and Shift+Wheel to scroll this panel."));
|
|
|
|
|
}
|
|
|
|
|
@ -190,7 +190,7 @@ void SettingsWindow::addPages()
|
|
|
|
|
{
|
|
|
|
|
addWidget(
|
|
|
|
|
new DebuggingSettingsWidget(this, m_ui.settingsContainer), tr("Debugging"),
|
|
|
|
|
":/icons/monochrome/svg/code-line.svg"_L1,
|
|
|
|
|
u":/icons/monochrome/svg/code-line.svg"_s,
|
|
|
|
|
tr("<strong>Debugging Settings</strong><hr>These options control internal behavior of the emulator. You should "
|
|
|
|
|
"not modify anything on this page without a good reason to do so."));
|
|
|
|
|
}
|
|
|
|
|
@ -275,7 +275,7 @@ void SettingsWindow::connectUi()
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void SettingsWindow::addWidget(QWidget* widget, QString title, QLatin1StringView icon, QString help_text)
|
|
|
|
|
void SettingsWindow::addWidget(QWidget* widget, QString title, QString icon, QString help_text)
|
|
|
|
|
{
|
|
|
|
|
const int index = m_ui.settingsCategory->count();
|
|
|
|
|
|
|
|
|
|
|