From 7d6b79b19e568ee18fe5acb67595ba34f8825b6f Mon Sep 17 00:00:00 2001 From: georgemoralis Date: Thu, 12 Jun 2025 18:50:12 +0300 Subject: [PATCH] adding home dir --- src/common/path_util.cpp | 1 + src/common/path_util.h | 2 ++ 2 files changed, 3 insertions(+) diff --git a/src/common/path_util.cpp b/src/common/path_util.cpp index 3270c24dd..383e15b61 100644 --- a/src/common/path_util.cpp +++ b/src/common/path_util.cpp @@ -137,6 +137,7 @@ static auto UserPaths = [] { create_path(PathType::PatchesDir, user_dir / PATCHES_DIR); create_path(PathType::MetaDataDir, user_dir / METADATA_DIR); create_path(PathType::CustomTrophy, user_dir / CUSTOM_TROPHY); + create_path(PathType::HomeDir, user_dir / HOME_DIR); std::ofstream notice_file(user_dir / CUSTOM_TROPHY / "Notice.txt"); if (notice_file.is_open()) { diff --git a/src/common/path_util.h b/src/common/path_util.h index b8053a229..8418a74f5 100644 --- a/src/common/path_util.h +++ b/src/common/path_util.h @@ -27,6 +27,7 @@ enum class PathType { PatchesDir, // Where patches are stored. MetaDataDir, // Where game metadata (e.g. trophies and menu backgrounds) is stored. CustomTrophy, // Where custom files for trophies are stored. + HomeDir, // PS4 home directory }; constexpr auto PORTABLE_DIR = "user"; @@ -44,6 +45,7 @@ constexpr auto CHEATS_DIR = "cheats"; constexpr auto PATCHES_DIR = "patches"; constexpr auto METADATA_DIR = "game_data"; constexpr auto CUSTOM_TROPHY = "custom_trophy"; +constexpr auto HOME_DIR = "home"; // Filenames constexpr auto LOG_FILE = "shad_log.txt";