This commit is contained in:
watrabi
2025-10-28 14:05:46 -04:00
parent 977f1ff4b8
commit c93494f795
452 changed files with 47860 additions and 152 deletions
+32
View File
@@ -0,0 +1,32 @@
#pragma once
#include "FastLog.h"
#include <string>
#include <boost/filesystem.hpp>
#include <boost/thread/mutex.hpp>
#include <boost/system/error_code.hpp>
DYNAMIC_LOGGROUP(FileSystem)
namespace RBX
{
enum FileSystemDir
{
DirAppData = 0,
DirPicture,
DirVideo,
DirExe
};
namespace FileSystem
{
boost::filesystem::path getUserDirectory(bool create, FileSystemDir dir, const char *subDirectory = 0);
boost::filesystem::path getCacheDirectory(bool create, const char* subDirectory);
boost::filesystem::path getTempFilePath();
boost::filesystem::path getLogsDirectory();
void clearCacheDirectory(const char* subDirectory);
};
} // namespace RBX