adding home dir

This commit is contained in:
georgemoralis 2025-06-12 18:50:12 +03:00
parent dbaf2cc38e
commit 7d6b79b19e
2 changed files with 3 additions and 0 deletions

View file

@ -137,6 +137,7 @@ static auto UserPaths = [] {
create_path(PathType::PatchesDir, user_dir / PATCHES_DIR); create_path(PathType::PatchesDir, user_dir / PATCHES_DIR);
create_path(PathType::MetaDataDir, user_dir / METADATA_DIR); create_path(PathType::MetaDataDir, user_dir / METADATA_DIR);
create_path(PathType::CustomTrophy, user_dir / CUSTOM_TROPHY); 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"); std::ofstream notice_file(user_dir / CUSTOM_TROPHY / "Notice.txt");
if (notice_file.is_open()) { if (notice_file.is_open()) {

View file

@ -27,6 +27,7 @@ enum class PathType {
PatchesDir, // Where patches are stored. PatchesDir, // Where patches are stored.
MetaDataDir, // Where game metadata (e.g. trophies and menu backgrounds) is stored. MetaDataDir, // Where game metadata (e.g. trophies and menu backgrounds) is stored.
CustomTrophy, // Where custom files for trophies are stored. CustomTrophy, // Where custom files for trophies are stored.
HomeDir, // PS4 home directory
}; };
constexpr auto PORTABLE_DIR = "user"; constexpr auto PORTABLE_DIR = "user";
@ -44,6 +45,7 @@ constexpr auto CHEATS_DIR = "cheats";
constexpr auto PATCHES_DIR = "patches"; constexpr auto PATCHES_DIR = "patches";
constexpr auto METADATA_DIR = "game_data"; constexpr auto METADATA_DIR = "game_data";
constexpr auto CUSTOM_TROPHY = "custom_trophy"; constexpr auto CUSTOM_TROPHY = "custom_trophy";
constexpr auto HOME_DIR = "home";
// Filenames // Filenames
constexpr auto LOG_FILE = "shad_log.txt"; constexpr auto LOG_FILE = "shad_log.txt";