Mercurial > minori
diff include/core/filesystem.h @ 11:fc1bf97c528b
*: use C++11 standard
I've been meaning to do this for a while, but I didn't want to reimplement
the filesystem code. Now we are on C++11 and most compilers from the past 5 centuries should support this now
author | Paper <mrpapersonic@gmail.com> |
---|---|
date | Sun, 17 Sep 2023 06:14:30 -0400 |
parents | 5c0397762b53 |
children | 2743011a6042 |
line wrap: on
line diff
--- a/include/core/filesystem.h Sat Sep 16 02:06:01 2023 -0400 +++ b/include/core/filesystem.h Sun Sep 17 06:14:30 2023 -0400 @@ -1,5 +1,14 @@ #ifndef __core__filesystem_h #define __core__filesystem_h -#include <filesystem> -std::filesystem::path get_config_path(void); -#endif // __core__filesystem_h \ No newline at end of file +#include <string> + +namespace Filesystem { + +bool CreateDirectories(std::string path); +bool Exists(std::string path); +std::string GetParentDirectory(std::string path); +std::string GetConfigPath(); + +} + +#endif // __core__filesystem_h