[XAM] Added XamProfileOpen support and xam_profile.cc dedicated file for XamProfile exports

- Modified implementation of MountProfile to allow custom mount paths
This commit is contained in:
Gliniak
2025-01-08 22:11:10 +01:00
parent 7e51efeec5
commit 4620fa93d8
4 changed files with 38 additions and 3 deletions

View File

@@ -253,9 +253,12 @@ void ProfileManager::ModifyGamertag(const uint64_t xuid, std::string gamertag) {
DismountProfile(xuid);
}
bool ProfileManager::MountProfile(const uint64_t xuid) {
bool ProfileManager::MountProfile(const uint64_t xuid, std::string mount_path) {
std::filesystem::path profile_path = GetProfilePath(xuid);
std::string mount_path = fmt::format("{:016X}", xuid) + ':';
if (mount_path.empty()) {
mount_path = fmt::format("{:016X}", xuid);
}
mount_path += ':';
auto device =
std::make_unique<vfs::HostPathDevice>(mount_path, profile_path, false);