aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/yuzu/main.h
diff options
context:
space:
mode:
authorliamwhite <[email protected]>2022-12-16 11:57:16 -0500
committerGitHub <[email protected]>2022-12-16 11:57:16 -0500
commit9bfd4d880ecc332b230c9977654849d7521c93fb (patch)
treed12654b62b1da9a29cc878f0aa3c7f26e275ed70 /src/yuzu/main.h
parent9ff891ce71bfe89f46a1b6f018e421db5dec5762 (diff)
parent5a5bb91f4048f210c56ef6f233879d3b845927f0 (diff)
downloadyuzu-mainline-9bfd4d880ecc332b230c9977654849d7521c93fb.tar.gz
yuzu-mainline-9bfd4d880ecc332b230c9977654849d7521c93fb.zip
Merge pull request #6769 from lat9nq/create-shortcut-2
yuzu qt, common: Add option to create game shortcuts on Linux
Diffstat (limited to 'src/yuzu/main.h')
-rw-r--r--src/yuzu/main.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/yuzu/main.h b/src/yuzu/main.h
index 27644fae5..1047ba276 100644
--- a/src/yuzu/main.h
+++ b/src/yuzu/main.h
@@ -38,6 +38,7 @@ class QProgressDialog;
class WaitTreeWidget;
enum class GameListOpenTarget;
enum class GameListRemoveTarget;
+enum class GameListShortcutTarget;
enum class DumpRomFSTarget;
enum class InstalledEntryType;
class GameListPlaceholder;
@@ -293,6 +294,8 @@ private slots:
void OnGameListCopyTID(u64 program_id);
void OnGameListNavigateToGamedbEntry(u64 program_id,
const CompatibilityList& compatibility_list);
+ void OnGameListCreateShortcut(u64 program_id, const std::string& game_path,
+ GameListShortcutTarget target);
void OnGameListOpenDirectory(const QString& directory);
void OnGameListAddDirectory();
void OnGameListShowList(bool show);
@@ -366,6 +369,10 @@ private:
bool CheckDarkMode();
QString GetTasStateDescription() const;
+ bool CreateShortcut(const std::string& shortcut_path, const std::string& title,
+ const std::string& comment, const std::string& icon_path,
+ const std::string& command, const std::string& arguments,
+ const std::string& categories, const std::string& keywords);
std::unique_ptr<Ui::MainWindow> ui;