Move NtCreateFile/NtOpenFile to VFS, implement (mostly) for real.

Progress on #305.
This commit is contained in:
Ben Vanik
2015-06-29 10:33:36 -07:00
parent 0104a2290f
commit cc08e9019a
25 changed files with 459 additions and 159 deletions

View File

@@ -16,6 +16,9 @@
#include "xenia/base/string.h"
// TOODO(benvanik): remove windows headers.
#undef DeleteFile
namespace xe {
namespace filesystem {
@@ -28,6 +31,7 @@ bool DeleteFolder(const std::wstring& path);
bool IsFolder(const std::wstring& path);
FILE* OpenFile(const std::wstring& path, const char* mode);
bool DeleteFile(const std::wstring& path);
struct FileInfo {
enum class Type {
@@ -41,6 +45,7 @@ struct FileInfo {
uint64_t access_timestamp;
uint64_t write_timestamp;
};
bool GetInfo(const std::wstring& path, FileInfo* out_info);
std::vector<FileInfo> ListFiles(const std::wstring& path);
class WildcardFlags {