Add basic infrastructure to time io better.

This allows the filesystems to more accurately control timing.
But they're not actually doing it yet (same timing as before.)
This commit is contained in:
Unknown W. Brackets committed 2014-12-26 01:15:17 -08:00
1 parent 0abd95e784
commit d6a113809b
12 files changed
+210 -51

No files matched your search

+2
View File
@@ -33,6 +33,7 @@ public:
u32 OpenFile(std::string filename, FileAccess access, const char *devicename=NULL) override;
size_t SeekFile(u32 handle, s32 position, FileMove type) override;
size_t ReadFile(u32 handle, u8 *pointer, s64 size) override;
size_t ReadFile(u32 handle, u8 *pointer, s64 size, int &usec) override;
void CloseFile(u32 handle) override;
PSPFileInfo GetFileInfo(std::string filename) override;
bool OwnsHandle(u32 handle) override;
@@ -45,6 +46,7 @@ public:
// unsupported operations
size_t WriteFile(u32 handle, const u8 *pointer, s64 size) override;
size_t WriteFile(u32 handle, const u8 *pointer, s64 size, int &usec) override;
bool MkDir(const std::string &dirname) override;
bool RmDir(const std::string &dirname) override;
int RenameFile(const std::string &from, const std::string &to) override;