Use .cfg over unordered map

This commit is contained in:
FutureRave
2021-12-04 18:34:19 +00:00
parent e2de20c2aa
commit 69592a5656
6 changed files with 46 additions and 22 deletions

View File

@ -63,6 +63,11 @@ namespace Utils
return false;
}
bool RemoveFile(const std::string& file)
{
return DeleteFileA(file.data()) == TRUE;
}
size_t FileSize(const std::string& file)
{
if (FileExists(file))

View File

@ -8,6 +8,7 @@ namespace Utils
bool WriteFile(const std::string& file, const std::string& data, bool append = false);
bool ReadFile(const std::string& file, std::string* data);
std::string ReadFile(const std::string& file);
bool RemoveFile(const std::string& file);
size_t FileSize(const std::string& file);
bool CreateDir(const std::string& dir);
bool DirectoryExists(const std::string& file);