1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
#ifndef FILESYSTEM_H #define FILESYSTEM_H #include <string> class FileSystem { public: std::string GetDataPath(); std::string GetPersistentPath(); std::string GetTempPath(); private: FileSystem(); static FileSystem* m_Instance; friend FileSystem& GetFileSystem(); }; FileSystem& GetFileSystem(); #endif