From aaeb587f1eef496f165126d69ad7a8e0cf7ab26d Mon Sep 17 00:00:00 2001 From: DanielSvoboda Date: Wed, 11 Oct 2023 19:58:54 -0300 Subject: [PATCH] Update main.cpp desktopPath > desktop_Path applicationsPath > applications_Path --- src/yuzu/main.cpp | 32 ++++++++++++++++---------------- 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/src/yuzu/main.cpp b/src/yuzu/main.cpp index 3f1747edd2..4d93ae2fa0 100644 --- a/src/yuzu/main.cpp +++ b/src/yuzu/main.cpp @@ -2872,22 +2872,22 @@ void GMainWindow::OnGameListCreateShortcut(u64 program_id, const std::string& ga std::filesystem::path target_directory{}; -switch (target) { - case GameListShortcutTarget::Desktop: { - const QString desktopPath = - QStandardPaths::writableLocation(QStandardPaths::DesktopLocation); - target_directory = desktopPath.toUtf8().toStdString(); - break; - } - case GameListShortcutTarget::Applications: { - const QString applicationsPath = - QStandardPaths::writableLocation(QStandardPaths::ApplicationsLocation); - target_directory = applicationsPath.toUtf8().toStdString(); - break; - } - default: - return; - } + switch (target) { + case GameListShortcutTarget::Desktop: { + const QString desktop_Path = + QStandardPaths::writableLocation(QStandardPaths::DesktopLocation); + target_directory = desktop_Path.toUtf8().toStdString(); + break; + } + case GameListShortcutTarget::Applications: { + const QString applications_Path = + QStandardPaths::writableLocation(QStandardPaths::ApplicationsLocation); + target_directory = applications_Path.toUtf8().toStdString(); + break; + } + default: + return; + } const QDir dir(QString::fromStdString(target_directory.generic_string())); if (!dir.exists()) {