summaryrefslogtreecommitdiff
path: root/src/yuzu
diff options
context:
space:
mode:
Diffstat (limited to 'src/yuzu')
-rw-r--r--src/yuzu/main.cpp16
-rw-r--r--src/yuzu/util/util.h3
2 files changed, 4 insertions, 15 deletions
diff --git a/src/yuzu/main.cpp b/src/yuzu/main.cpp
index e4dc717ed..fd68ac9b6 100644
--- a/src/yuzu/main.cpp
+++ b/src/yuzu/main.cpp
@@ -3082,13 +3082,9 @@ void GMainWindow::OnGameListCreateShortcut(u64 program_id, const std::string& ga
// Shortcut path
std::filesystem::path shortcut_path{};
if (target == GameListShortcutTarget::Desktop) {
- shortcut_path = Common::FS::GetDesktopPath();
- if (!std::filesystem::exists(shortcut_path)) {
- shortcut_path =
- QStandardPaths::writableLocation(QStandardPaths::DesktopLocation).toStdString();
- }
+ shortcut_path =
+ QStandardPaths::writableLocation(QStandardPaths::DesktopLocation).toStdString();
} else if (target == GameListShortcutTarget::Applications) {
-
#if defined(_WIN32)
HANDLE hProcess = GetCurrentProcess();
if (!IsUserAnAdmin()) {
@@ -3098,12 +3094,8 @@ void GMainWindow::OnGameListCreateShortcut(u64 program_id, const std::string& ga
}
CloseHandle(hProcess);
#endif // _WIN32
-
- shortcut_path = Common::FS::GetAppsShortcutsPath();
- if (!std::filesystem::exists(shortcut_path)) {
- shortcut_path = QStandardPaths::writableLocation(QStandardPaths::ApplicationsLocation)
- .toStdString();
- }
+ shortcut_path =
+ QStandardPaths::writableLocation(QStandardPaths::ApplicationsLocation).toStdString();
}
// Icon path and title
diff --git a/src/yuzu/util/util.h b/src/yuzu/util/util.h
index 8839e160a..31e82ff67 100644
--- a/src/yuzu/util/util.h
+++ b/src/yuzu/util/util.h
@@ -8,11 +8,9 @@
#include <QString>
/// Returns a QFont object appropriate to use as a monospace font for debugging widgets, etc.
-
[[nodiscard]] QFont GetMonospaceFont();
/// Convert a size in bytes into a readable format (KiB, MiB, etc.)
-
[[nodiscard]] QString ReadableByteSize(qulonglong size);
/**
@@ -34,5 +32,4 @@
*
* @return bool If the operation succeeded
*/
-
[[nodiscard]] bool SaveIconToFile(const QImage& image, const std::filesystem::path& icon_path);