mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2025-05-17 17:05:02 +00:00
Add option to save logfiles seperate for each game (#2504)
* add option to split log * better naming * fix * fix * fix formatting * fix misspelling * make clang conform * clang fix
This commit is contained in:
parent
84a614dddc
commit
c38e1635ea
6 changed files with 108 additions and 76 deletions
|
@ -425,6 +425,8 @@ void SettingsDialog::LoadValuesFromConfig() {
|
|||
QString::fromStdString(toml::find_or<std::string>(data, "Keys", "TrophyKey", "")));
|
||||
ui->trophyKeyLineEdit->setEchoMode(QLineEdit::Password);
|
||||
ui->debugDump->setChecked(toml::find_or<bool>(data, "Debug", "DebugDump", false));
|
||||
ui->separateLogFilesCheckbox->setChecked(
|
||||
toml::find_or<bool>(data, "Debug", "isSeparateLogFilesEnabled", false));
|
||||
ui->vkValidationCheckBox->setChecked(toml::find_or<bool>(data, "Vulkan", "validation", false));
|
||||
ui->vkSyncValidationCheckBox->setChecked(
|
||||
toml::find_or<bool>(data, "Vulkan", "validation_sync", false));
|
||||
|
@ -648,7 +650,8 @@ void SettingsDialog::updateNoteTextEdit(const QString& elementName) {
|
|||
text = tr("Copy GPU Buffers:\\nGets around race conditions involving GPU submits.\\nMay or may not help with PM4 type 0 crashes.");
|
||||
} else if (elementName == "collectShaderCheckBox") {
|
||||
text = tr("Collect Shaders:\\nYou need this enabled to edit shaders with the debug menu (Ctrl + F10).");
|
||||
}
|
||||
} else if (elementName == "separateLogFilesCheckbox") {
|
||||
text = tr("Separate Log Files:\\nWrites a separate logfile for each game.");}
|
||||
// clang-format on
|
||||
ui->descriptionText->setText(text.replace("\\n", "\n"));
|
||||
}
|
||||
|
@ -700,6 +703,7 @@ void SettingsDialog::UpdateSettings() {
|
|||
Config::setLoadGameSizeEnabled(ui->gameSizeCheckBox->isChecked());
|
||||
Config::setShowSplash(ui->showSplashCheckBox->isChecked());
|
||||
Config::setDebugDump(ui->debugDump->isChecked());
|
||||
Config::setSeparateLogFilesEnabled(ui->separateLogFilesCheckbox->isChecked());
|
||||
Config::setVkValidation(ui->vkValidationCheckBox->isChecked());
|
||||
Config::setVkSyncValidation(ui->vkSyncValidationCheckBox->isChecked());
|
||||
Config::setRdocEnabled(ui->rdocCheckBox->isChecked());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue