1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-26 00:04:43 +01:00

Extract ResolveCasing to Platform

This commit is contained in:
Tulio Leao
2021-03-26 00:07:53 -03:00
parent c7ae064a4c
commit 62fc4c8034
4 changed files with 56 additions and 42 deletions

View File

@@ -582,6 +582,17 @@ namespace Platform
}
}
std::string ResolveCasing(const std::string& path, bool fileExists)
{
std::string result;
if (fileExists)
{
// Windows is case insensitive so it will exist and that is all that matters
// for now. We can properly resolve the casing if we ever need to.
result = path;
}
return result;
}
} // namespace Platform
#endif