mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-02 21:11:25 +12:00
Revert recent file system changes (#11370)
* Revert "FS: use std::filesystem::u8path" This reverts commitcd016be86e
. * Revert "VFS: fix missing path deliminators" This reverts commit84753db574
. * Revert "Bugfix of Emulator::Load disc path searching" This reverts commitb9179de288
. * Revert "fs: Reimplement path resolving using std::filesystem::weakly_canonical" This reverts commit0c4b2ff06b
.
This commit is contained in:
parent
949e93bec7
commit
f526027778
6 changed files with 22 additions and 45 deletions
|
@ -4,7 +4,6 @@
|
|||
#include "Crypto/sha1.h"
|
||||
|
||||
#include <unordered_map>
|
||||
#include <filesystem>
|
||||
#include <algorithm>
|
||||
#include <cstring>
|
||||
#include <map>
|
||||
|
@ -1823,20 +1822,6 @@ bool fs::remove_all(const std::string& path, bool remove_root)
|
|||
return true;
|
||||
}
|
||||
|
||||
std::string fs::resolve_path(std::string_view path)
|
||||
{
|
||||
std::error_code ec{};
|
||||
const auto result = std::filesystem::weakly_canonical(std::filesystem::u8path(path), ec);
|
||||
|
||||
if (ec)
|
||||
{
|
||||
g_tls_error = error::inval;
|
||||
return {};
|
||||
}
|
||||
|
||||
return result.string();
|
||||
}
|
||||
|
||||
u64 fs::get_dir_size(const std::string& path, u64 rounding_alignment)
|
||||
{
|
||||
u64 result = 0;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue