early-access version 3869

This commit is contained in:
pineappleEA
2023-09-15 00:52:37 +02:00
parent 3c0f5c99c6
commit 9909d10e49
27 changed files with 441 additions and 326 deletions

View File

@@ -528,38 +528,41 @@ void IterateDirEntriesRecursively(const std::filesystem::path& path,
// Generic Filesystem Operations
bool Exists(const fs::path& path) {
std::error_code ec;
#ifdef ANDROID
if (Android::IsContentUri(path)) {
return Android::Exists(path);
} else {
return fs::exists(path);
return fs::exists(path, ec);
}
#else
return fs::exists(path);
return fs::exists(path, ec);
#endif
}
bool IsFile(const fs::path& path) {
std::error_code ec;
#ifdef ANDROID
if (Android::IsContentUri(path)) {
return !Android::IsDirectory(path);
} else {
return fs::is_regular_file(path);
return fs::is_regular_file(path, ec);
}
#else
return fs::is_regular_file(path);
return fs::is_regular_file(path, ec);
#endif
}
bool IsDir(const fs::path& path) {
std::error_code ec;
#ifdef ANDROID
if (Android::IsContentUri(path)) {
return Android::IsDirectory(path);
} else {
return fs::is_directory(path);
return fs::is_directory(path, ec);
}
#else
return fs::is_directory(path);
return fs::is_directory(path, ec);
#endif
}

View File

@@ -231,7 +231,7 @@ public:
[[nodiscard]] virtual constexpr bool IsFloatingPoint() const = 0;
/**
* @returns True if the underlying type is a integer storage
* @returns True if the underlying type is an integer storage
*/
[[nodiscard]] virtual constexpr bool IsIntegral() const = 0;