mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2026-05-26 13:50:37 +00:00
used default addcont folder if not set (#4253)
This commit is contained in:
@@ -207,6 +207,17 @@ void EmulatorSettingsImpl::SetFontsDir(const std::filesystem::path& dir) {
|
||||
m_general.font_dir.value = dir;
|
||||
}
|
||||
|
||||
std::filesystem::path EmulatorSettingsImpl::GetAddonInstallDir() {
|
||||
if (m_general.addon_install_dir.value.empty()) {
|
||||
return Common::FS::GetUserPath(Common::FS::PathType::UserDir) / "addcont";
|
||||
}
|
||||
return m_general.addon_install_dir.value;
|
||||
}
|
||||
|
||||
void EmulatorSettingsImpl::SetAddonInstallDir(const std::filesystem::path& dir) {
|
||||
m_general.addon_install_dir.value = dir;
|
||||
}
|
||||
|
||||
// ── Game-specific override management ────────────────────────────────
|
||||
void EmulatorSettingsImpl::ClearGameSpecificOverrides() {
|
||||
ClearGroupOverrides(m_general);
|
||||
|
||||
@@ -455,6 +455,8 @@ public:
|
||||
void SetSysModulesDir(const std::filesystem::path& dir);
|
||||
std::filesystem::path GetFontsDir();
|
||||
void SetFontsDir(const std::filesystem::path& dir);
|
||||
std::filesystem::path GetAddonInstallDir();
|
||||
void SetAddonInstallDir(const std::filesystem::path& dir);
|
||||
|
||||
private:
|
||||
GeneralSettings m_general{};
|
||||
@@ -549,7 +551,6 @@ public:
|
||||
SETTING_FORWARD(m_general, TrophyNotificationSide, trophy_notification_side)
|
||||
SETTING_FORWARD_BOOL(m_general, ShowSplash, show_splash)
|
||||
SETTING_FORWARD_BOOL(m_general, IdenticalLogGrouped, identical_log_grouped)
|
||||
SETTING_FORWARD(m_general, AddonInstallDir, addon_install_dir)
|
||||
SETTING_FORWARD(m_general, LogFilter, log_filter)
|
||||
SETTING_FORWARD(m_general, LogType, log_type)
|
||||
SETTING_FORWARD_BOOL(m_general, ConnectedToNetwork, connected_to_network)
|
||||
|
||||
Reference in New Issue
Block a user