From 6747521431f4859a5d46bd177baae3c31e0eee3d Mon Sep 17 00:00:00 2001 From: lizzie Date: Tue, 31 Mar 2026 09:01:00 +0000 Subject: [PATCH] ryujinx was never ported to PS4 --- src/common/fs/path_util.cpp | 19 +++++++------------ 1 file changed, 7 insertions(+), 12 deletions(-) diff --git a/src/common/fs/path_util.cpp b/src/common/fs/path_util.cpp index 3cbe6371a4..62e765aa6c 100644 --- a/src/common/fs/path_util.cpp +++ b/src/common/fs/path_util.cpp @@ -173,12 +173,11 @@ public: #ifdef _WIN32 GenerateLegacyPath(EmuPath::RyujinxDir, GetAppDataRoamingDirectory() / RYUJINX_DIR); -#else +#elif !defined(__OPENORBIS__) // In Ryujinx's infinite wisdom, it places EVERYTHING in the config directory on UNIX // This is incredibly stupid and violates a million XDG standards, but whatever GenerateLegacyPath(EmuPath::RyujinxDir, GetDataDirectory("XDG_CONFIG_HOME") / RYUJINX_DIR); #endif - } private: @@ -340,36 +339,33 @@ fs::path GetAppDataRoamingDirectory() { return fs_appdata_roaming_path; } +#elif defined(__OPENORBIS__) + +// Not required/defined + #else fs::path GetHomeDirectory() { const char* home_env_var = getenv("HOME"); - if (home_env_var) { return fs::path{home_env_var}; } - LOG_INFO(Common_Filesystem, - "$HOME is not defined in the environment variables, " - "attempting to query passwd to get the home path of the current user"); - + "$HOME is not defined in the environment variables, " + "attempting to query passwd to get the home path of the current user"); const auto* pw = getpwuid(getuid()); - if (!pw) { LOG_ERROR(Common_Filesystem, "Failed to get the home path of the current user"); return {}; } - return fs::path{pw->pw_dir}; } fs::path GetDataDirectory(const std::string& env_name) { const char* data_env_var = getenv(env_name.c_str()); - if (data_env_var) { return fs::path{data_env_var}; } - if (env_name == "XDG_DATA_HOME") { return GetHomeDirectory() / ".local/share"; } else if (env_name == "XDG_CACHE_HOME") { @@ -377,7 +373,6 @@ fs::path GetDataDirectory(const std::string& env_name) { } else if (env_name == "XDG_CONFIG_HOME") { return GetHomeDirectory() / ".config"; } - return {}; }