fix misspelling

This commit is contained in:
Fire Cube 2025-02-23 17:47:27 +01:00
parent 87b0a8d160
commit 3e2798e5b5
5 changed files with 19 additions and 17 deletions

View File

@ -69,7 +69,7 @@ static bool vkHostMarkers = false;
static bool vkGuestMarkers = false; static bool vkGuestMarkers = false;
static bool rdocEnable = false; static bool rdocEnable = false;
static bool isFpsColor = true; static bool isFpsColor = true;
static bool isSeperateLogFilesEnabled = false; static bool isSeparateLogFilesEnabled = false;
static s16 cursorState = HideCursorState::Idle; static s16 cursorState = HideCursorState::Idle;
static int cursorHideTimeout = 5; // 5 seconds (default) static int cursorHideTimeout = 5; // 5 seconds (default)
static bool useUnifiedInputConfig = true; static bool useUnifiedInputConfig = true;
@ -452,8 +452,8 @@ void setLogFilter(const std::string& type) {
logFilter = type; logFilter = type;
} }
void setSeperateLogFilesEnabled(bool enabled) { void setSeparateLogFilesEnabled(bool enabled) {
isSeperateLogFilesEnabled = enabled; isSeparateLogFilesEnabled = enabled;
} }
void setUserName(const std::string& type) { void setUserName(const std::string& type) {
@ -661,8 +661,8 @@ u32 GetLanguage() {
return m_language; return m_language;
} }
bool getSeperateLogFilesEnabled() { bool getSeparateLogFilesEnabled() {
return isSeperateLogFilesEnabled; return isSeparateLogFilesEnabled;
} }
int getBackgroundImageOpacity() { int getBackgroundImageOpacity() {
@ -770,7 +770,7 @@ void load(const std::filesystem::path& path) {
const toml::value& debug = data.at("Debug"); const toml::value& debug = data.at("Debug");
isDebugDump = toml::find_or<bool>(debug, "DebugDump", false); isDebugDump = toml::find_or<bool>(debug, "DebugDump", false);
isSeperateLogFilesEnabled = toml::find_or<bool>(debug, "isSeperateLogFilesEnabled", false); isSeparateLogFilesEnabled = toml::find_or<bool>(debug, "isSeparateLogFilesEnabled", false);
isShaderDebug = toml::find_or<bool>(debug, "CollectShader", false); isShaderDebug = toml::find_or<bool>(debug, "CollectShader", false);
isFpsColor = toml::find_or<bool>(debug, "FPSColor", true); isFpsColor = toml::find_or<bool>(debug, "FPSColor", true);
} }
@ -897,7 +897,7 @@ void save(const std::filesystem::path& path) {
data["Vulkan"]["rdocEnable"] = rdocEnable; data["Vulkan"]["rdocEnable"] = rdocEnable;
data["Debug"]["DebugDump"] = isDebugDump; data["Debug"]["DebugDump"] = isDebugDump;
data["Debug"]["CollectShader"] = isShaderDebug; data["Debug"]["CollectShader"] = isShaderDebug;
data["Debug"]["isSeperateLogFilesEnabled"] = isSeperateLogFilesEnabled; data["Debug"]["isSeparateLogFilesEnabled"] = isSeparateLogFilesEnabled;
data["Debug"]["FPSColor"] = isFpsColor; data["Debug"]["FPSColor"] = isFpsColor;
data["Keys"]["TrophyKey"] = trophyKey; data["Keys"]["TrophyKey"] = trophyKey;

View File

@ -111,8 +111,8 @@ void setIsMotionControlsEnabled(bool use);
void setLogType(const std::string& type); void setLogType(const std::string& type);
void setLogFilter(const std::string& type); void setLogFilter(const std::string& type);
void setSeperateLogFilesEnabled(bool enabled); void setSeparateLogFilesEnabled(bool enabled);
bool getSeperateLogFilesEnabled(); bool getSeparateLogFilesEnabled();
void setVkValidation(bool enable); void setVkValidation(bool enable);
void setVkSyncValidation(bool enable); void setVkSyncValidation(bool enable);
void setRdocEnabled(bool enable); void setRdocEnabled(bool enable);

View File

@ -115,7 +115,7 @@ void Emulator::Run(const std::filesystem::path& file, const std::vector<std::str
ASSERT_MSG(content_id.has_value(), "Failed to get CONTENT_ID"); ASSERT_MSG(content_id.has_value(), "Failed to get CONTENT_ID");
id = std::string(*content_id, 7, 9); id = std::string(*content_id, 7, 9);
if (Config::getSeperateLogFilesEnabled()) { if (Config::getSeparateLogFilesEnabled()) {
Common::Log::Initialize(id + ".log"); Common::Log::Initialize(id + ".log");
} }
else { else {

View File

@ -404,8 +404,8 @@ void SettingsDialog::LoadValuesFromConfig() {
QString::fromStdString(toml::find_or<std::string>(data, "Keys", "TrophyKey", ""))); QString::fromStdString(toml::find_or<std::string>(data, "Keys", "TrophyKey", "")));
ui->trophyKeyLineEdit->setEchoMode(QLineEdit::Password); ui->trophyKeyLineEdit->setEchoMode(QLineEdit::Password);
ui->debugDump->setChecked(toml::find_or<bool>(data, "Debug", "DebugDump", false)); ui->debugDump->setChecked(toml::find_or<bool>(data, "Debug", "DebugDump", false));
ui->seperateLogFilesCheckbox->setChecked( ui->separateLogFilesCheckbox->setChecked(
toml::find_or<bool>(data, "Debug", "isSeperateLogFilesEnabled", false)); toml::find_or<bool>(data, "Debug", "isSeparateLogFilesEnabled", false));
ui->vkValidationCheckBox->setChecked(toml::find_or<bool>(data, "Vulkan", "validation", false)); ui->vkValidationCheckBox->setChecked(toml::find_or<bool>(data, "Vulkan", "validation", false));
ui->vkSyncValidationCheckBox->setChecked( ui->vkSyncValidationCheckBox->setChecked(
toml::find_or<bool>(data, "Vulkan", "validation_sync", false)); toml::find_or<bool>(data, "Vulkan", "validation_sync", false));
@ -628,8 +628,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."); 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") { } else if (elementName == "collectShaderCheckBox") {
text = tr("Collect Shaders:\\nYou need this enabled to edit shaders with the debug menu (Ctrl + F10)."); text = tr("Collect Shaders:\\nYou need this enabled to edit shaders with the debug menu (Ctrl + F10).");
} else if (elementName == "seperateLogFilesCheckbox") { } else if (elementName == "separateLogFilesCheckbox") {
text = tr("Seperate Log Files:\\nWrites a seperate logfile for each game.");} text = tr("Separate Log Files:\\nWrites a separate logfile for each game.");}
// clang-format on // clang-format on
ui->descriptionText->setText(text.replace("\\n", "\n")); ui->descriptionText->setText(text.replace("\\n", "\n"));
} }
@ -681,7 +681,7 @@ void SettingsDialog::UpdateSettings() {
Config::setLoadGameSizeEnabled(ui->gameSizeCheckBox->isChecked()); Config::setLoadGameSizeEnabled(ui->gameSizeCheckBox->isChecked());
Config::setShowSplash(ui->showSplashCheckBox->isChecked()); Config::setShowSplash(ui->showSplashCheckBox->isChecked());
Config::setDebugDump(ui->debugDump->isChecked()); Config::setDebugDump(ui->debugDump->isChecked());
Config::setSeperateLogFilesEnabled(ui->seperateLogFilesCheckbox->isChecked()); Config::setSeparateLogFilesEnabled(ui->separateLogFilesCheckbox->isChecked());
Config::setVkValidation(ui->vkValidationCheckBox->isChecked()); Config::setVkValidation(ui->vkValidationCheckBox->isChecked());
Config::setVkSyncValidation(ui->vkSyncValidationCheckBox->isChecked()); Config::setVkSyncValidation(ui->vkSyncValidationCheckBox->isChecked());
Config::setRdocEnabled(ui->rdocCheckBox->isChecked()); Config::setRdocEnabled(ui->rdocCheckBox->isChecked());

View File

@ -1,4 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<!-- SPDX-FileCopyrightText: Copyright 2024 shadPS4 Emulator Project
SPDX-License-Identifier: GPL-2.0-or-later -->
<ui version="4.0"> <ui version="4.0">
<class>SettingsDialog</class> <class>SettingsDialog</class>
<widget class="QDialog" name="SettingsDialog"> <widget class="QDialog" name="SettingsDialog">
@ -1912,9 +1914,9 @@
</widget> </widget>
</item> </item>
<item row="0" column="1"> <item row="0" column="1">
<widget class="QCheckBox" name="seperateLogFilesCheckbox"> <widget class="QCheckBox" name="separateLogFilesCheckbox">
<property name="text"> <property name="text">
<string>Seperate Log Files</string> <string>Separate Log Files</string>
</property> </property>
</widget> </widget>
</item> </item>