mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2025-12-12 22:59:04 +00:00
- Several SaveData functions. Dysmantle and we are doomed should save and load now.
This commit is contained in:
@@ -18,7 +18,12 @@ void MntPoints::Mount(const std::filesystem::path& host_folder, const std::strin
|
||||
m_mnt_pairs.push_back(pair);
|
||||
}
|
||||
|
||||
void MntPoints::Unmount(const std::string& path) {} // TODO!
|
||||
void MntPoints::Unmount(const std::filesystem::path& host_folder, const std::string& guest_folder) {
|
||||
auto it = std::remove_if(m_mnt_pairs.begin(), m_mnt_pairs.end(), [&](const MntPair& pair) {
|
||||
return pair.guest_path == guest_folder;
|
||||
});
|
||||
m_mnt_pairs.erase(it, m_mnt_pairs.end());
|
||||
}
|
||||
|
||||
void MntPoints::UnmountAll() {
|
||||
std::scoped_lock lock{m_mutex};
|
||||
|
||||
@@ -22,7 +22,7 @@ public:
|
||||
virtual ~MntPoints() = default;
|
||||
|
||||
void Mount(const std::filesystem::path& host_folder, const std::string& guest_folder);
|
||||
void Unmount(const std::string& path);
|
||||
void Unmount(const std::filesystem::path& host_folder, const std::string& guest_folder);
|
||||
void UnmountAll();
|
||||
std::string GetHostDirectory(const std::string& guest_directory);
|
||||
std::string GetHostFile(const std::string& guest_file);
|
||||
|
||||
Reference in New Issue
Block a user