aboutsummaryrefslogtreecommitdiff
path: root/src/yuzu/main.cpp
diff options
context:
space:
mode:
authorboludoz <francomaro@gmail.com>2023-10-18 02:35:23 -0300
committerboludoz <francomaro@gmail.com>2023-10-18 02:35:23 -0300
commita67a20707e1cb457848024edfd4c23b8eaa78fdf (patch)
tree994bbf6b3b358bf75855cb66c42433a2bac2514a /src/yuzu/main.cpp
parentc7ac598b6203ae5ea1fdd2f4b514043e429476c6 (diff)
TODO: Implement shortcut creation for Apple.
Diffstat (limited to 'src/yuzu/main.cpp')
-rw-r--r--src/yuzu/main.cpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/yuzu/main.cpp b/src/yuzu/main.cpp
index 73cd064782..ec3eb7536b 100644
--- a/src/yuzu/main.cpp
+++ b/src/yuzu/main.cpp
@@ -2839,7 +2839,8 @@ void GMainWindow::OnGameListNavigateToGamedbEntry(u64 program_id,
QDesktopServices::openUrl(QUrl(QStringLiteral("https://yuzu-emu.org/game/") + directory));
}
-
+// TODO: Implement shortcut creation for macOS
+#if !defined(__APPLE__)
bool GMainWindow::CreateShortcutLink(const std::filesystem::path& shortcut_path,
const std::string& comment,
const std::filesystem::path& icon_path,
@@ -2997,9 +2998,11 @@ bool GMainWindow::MakeShortcutIcoPath(const u64 program_id, const std::string_vi
: fmt::format("yuzu-{:016X}.{}", program_id, ico_extension));
return true;
}
-
+#endif // !defined(__APPLE__)
void GMainWindow::OnGameListCreateShortcut(u64 program_id, const std::string& game_path,
GameListShortcutTarget target) {
+// TODO: Implement shortcut creation for macOS
+#if !defined(__APPLE__)
std::string game_title;
QString qt_game_title;
std::filesystem::path out_icon_path;
@@ -3093,6 +3096,7 @@ void GMainWindow::OnGameListCreateShortcut(u64 program_id, const std::string& ga
}
GMainWindow::CreateShortcutMessagesGUI(this, GMainWindow::CREATE_SHORTCUT_MSGBOX_ERROR,
qt_game_title);
+#endif
}
void GMainWindow::OnGameListOpenDirectory(const QString& directory) {