Refactor IO (#575)

* [IO]: Use filesystem where possible

* [Library]: One small thing
This commit is contained in:
Edo
2022-11-22 01:34:17 +01:00
committed by GitHub
parent 18cc5c3c2e
commit 6a8088281f
5 changed files with 39 additions and 46 deletions

View File

@ -408,7 +408,7 @@ namespace Components
{
std::string hash;
for(int i = 0; i < ARRAYSIZE(Maps::UserMapFiles); ++i)
for (std::size_t i = 0; i < ARRAYSIZE(Maps::UserMapFiles); ++i)
{
std::string filePath = Utils::String::VA("usermaps/%s/%s%s", map.data(), map.data(), Maps::UserMapFiles[i]);
if (Utils::IO::FileExists(filePath))