From f0807fc44dde14531759306317611bab87c8fccf Mon Sep 17 00:00:00 2001 From: chai Date: Mon, 19 Oct 2020 09:13:58 +0800 Subject: +gamelab proj --- Runtime/FileSystem/FileSystem.h | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 Runtime/FileSystem/FileSystem.h (limited to 'Runtime/FileSystem/FileSystem.h') diff --git a/Runtime/FileSystem/FileSystem.h b/Runtime/FileSystem/FileSystem.h new file mode 100644 index 0000000..aae39c1 --- /dev/null +++ b/Runtime/FileSystem/FileSystem.h @@ -0,0 +1,24 @@ +#ifndef FILESYSTEM_H +#define FILESYSTEM_H + +#include + +class FileSystem +{ +public: + std::string GetDataPath(); + std::string GetPersistentPath(); + std::string GetTempPath(); + +private: + FileSystem(); + + static FileSystem* m_Instance; + + friend FileSystem& GetFileSystem(); + +}; + +FileSystem& GetFileSystem(); + +#endif \ No newline at end of file -- cgit v1.1-26-g67d0