filesystem: use std for PathExists
Remove custom platform implementation of `PathExists` and replace uses with `std::filesystem::exists`.
This commit is contained in:
committed by
Rick Gibbed
parent
a9fa38c88b
commit
c8e64da4eb
@@ -351,7 +351,7 @@ void EmulatorWindow::ShowContentDirectory() {
|
||||
target_path = package_root;
|
||||
}
|
||||
|
||||
if (!xe::filesystem::PathExists(target_path)) {
|
||||
if (!std::filesystem::exists(target_path)) {
|
||||
xe::filesystem::CreateFolder(target_path);
|
||||
}
|
||||
|
||||
|
||||
@@ -215,7 +215,7 @@ int xenia_main(const std::vector<std::string>& args) {
|
||||
std::filesystem::path storage_root = cvars::storage_root;
|
||||
if (storage_root.empty()) {
|
||||
storage_root = xe::filesystem::GetExecutableFolder();
|
||||
if (!xe::filesystem::PathExists(storage_root / "portable.txt")) {
|
||||
if (!std::filesystem::exists(storage_root / "portable.txt")) {
|
||||
storage_root = xe::filesystem::GetUserFolder();
|
||||
#if defined(XE_PLATFORM_WIN32) || defined(XE_PLATFORM_LINUX)
|
||||
storage_root = storage_root / "Xenia";
|
||||
|
||||
Reference in New Issue
Block a user