citra_qt: Add support for game desktop shortcuts

This commit is contained in:
FearlessTobi
2024-11-07 15:36:23 +00:00
committed by OpenSauce04
parent dafa96b39c
commit 89a119dbe9
11 changed files with 439 additions and 24 deletions

View File

@@ -52,6 +52,7 @@
#define LOAD_DIR "load"
#define SHADER_DIR "shaders"
#define STATES_DIR "states"
#define ICONS_DIR "icons"
// Filenames
// Files in the directory returned by GetUserPath(UserPath::LogDir)

View File

@@ -826,6 +826,7 @@ void SetUserPath(const std::string& path) {
g_paths.emplace(UserPath::DumpDir, user_path + DUMP_DIR DIR_SEP);
g_paths.emplace(UserPath::LoadDir, user_path + LOAD_DIR DIR_SEP);
g_paths.emplace(UserPath::StatesDir, user_path + STATES_DIR DIR_SEP);
g_paths.emplace(UserPath::IconsDir, user_path + ICONS_DIR DIR_SEP);
g_default_paths = g_paths;
}

View File

@@ -40,6 +40,7 @@ enum class UserPath {
StatesDir,
SysDataDir,
UserDir,
IconsDir,
};
// Replaces install-specific paths with standard placeholders, and back again