diff options
| author | 2023-10-07 17:26:04 +0200 | |
|---|---|---|
| committer | 2023-10-07 21:24:11 -0400 | |
| commit | 9ef9ca0927be1a5ee697f23ccf9f37b74ed12c7c (patch) | |
| tree | 53e7c35b0fc4ad3718019c69d1e82236413cd9e9 /src/common/fs | |
| parent | Merge pull request #11657 from liamwhite/new-codespell (diff) | |
| download | yuzu-9ef9ca0927be1a5ee697f23ccf9f37b74ed12c7c.tar.gz yuzu-9ef9ca0927be1a5ee697f23ccf9f37b74ed12c7c.tar.xz yuzu-9ef9ca0927be1a5ee697f23ccf9f37b74ed12c7c.zip | |
yuzu: Add desktop shortcut support for Windows
Allows creating desktop shortcuts with icons for yuzu games.
Co-Authored-By: Jeroen van Schijndel <13182141+roenyroeny@users.noreply.github.com>
Diffstat (limited to 'src/common/fs')
| -rw-r--r-- | src/common/fs/fs_paths.h | 1 | ||||
| -rw-r--r-- | src/common/fs/path_util.cpp | 1 | ||||
| -rw-r--r-- | src/common/fs/path_util.h | 1 |
3 files changed, 3 insertions, 0 deletions
diff --git a/src/common/fs/fs_paths.h b/src/common/fs/fs_paths.h index 61bac9eba..c54ce7654 100644 --- a/src/common/fs/fs_paths.h +++ b/src/common/fs/fs_paths.h | |||
| @@ -22,6 +22,7 @@ | |||
| 22 | #define SDMC_DIR "sdmc" | 22 | #define SDMC_DIR "sdmc" |
| 23 | #define SHADER_DIR "shader" | 23 | #define SHADER_DIR "shader" |
| 24 | #define TAS_DIR "tas" | 24 | #define TAS_DIR "tas" |
| 25 | #define ICONS_DIR "icons" | ||
| 25 | 26 | ||
| 26 | // yuzu-specific files | 27 | // yuzu-specific files |
| 27 | 28 | ||
diff --git a/src/common/fs/path_util.cpp b/src/common/fs/path_util.cpp index dce219fcf..461c170f7 100644 --- a/src/common/fs/path_util.cpp +++ b/src/common/fs/path_util.cpp | |||
| @@ -128,6 +128,7 @@ public: | |||
| 128 | GenerateYuzuPath(YuzuPath::SDMCDir, yuzu_path / SDMC_DIR); | 128 | GenerateYuzuPath(YuzuPath::SDMCDir, yuzu_path / SDMC_DIR); |
| 129 | GenerateYuzuPath(YuzuPath::ShaderDir, yuzu_path / SHADER_DIR); | 129 | GenerateYuzuPath(YuzuPath::ShaderDir, yuzu_path / SHADER_DIR); |
| 130 | GenerateYuzuPath(YuzuPath::TASDir, yuzu_path / TAS_DIR); | 130 | GenerateYuzuPath(YuzuPath::TASDir, yuzu_path / TAS_DIR); |
| 131 | GenerateYuzuPath(YuzuPath::IconsDir, yuzu_path / ICONS_DIR); | ||
| 131 | } | 132 | } |
| 132 | 133 | ||
| 133 | private: | 134 | private: |
diff --git a/src/common/fs/path_util.h b/src/common/fs/path_util.h index ba28964d0..61593bdf7 100644 --- a/src/common/fs/path_util.h +++ b/src/common/fs/path_util.h | |||
| @@ -24,6 +24,7 @@ enum class YuzuPath { | |||
| 24 | SDMCDir, // Where the emulated SDMC is stored. | 24 | SDMCDir, // Where the emulated SDMC is stored. |
| 25 | ShaderDir, // Where shaders are stored. | 25 | ShaderDir, // Where shaders are stored. |
| 26 | TASDir, // Where TAS scripts are stored. | 26 | TASDir, // Where TAS scripts are stored. |
| 27 | IconsDir, // Where Icons for Windows shortcuts are stored. | ||
| 27 | }; | 28 | }; |
| 28 | 29 | ||
| 29 | /** | 30 | /** |