filesystem: use std for PathExists

Remove custom platform implementation of `PathExists` and replace uses
with `std::filesystem::exists`.
This commit is contained in:
Sandy Carter
2020-04-09 10:09:18 -04:00
committed by Rick Gibbed
parent a9fa38c88b
commit c8e64da4eb
12 changed files with 23 additions and 36 deletions

View File

@@ -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);
}

View File

@@ -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";