1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-30 02:05:13 +01:00

Replace Equals with IEquals where appropriate

This commit is contained in:
ζeh Matt
2023-07-05 22:34:29 +03:00
parent 279a056125
commit 3d5e6ea932
27 changed files with 80 additions and 81 deletions

View File

@@ -320,7 +320,7 @@ namespace OpenRCT2::Title
{
auto name = zip->GetFileName(i);
auto ext = Path::GetExtension(name);
if (String::Equals(ext, ".sv6", true) || String::Equals(ext, ".sc6", true) || String::Equals(ext, ".park", true))
if (String::IEquals(ext, ".sv6") || String::IEquals(ext, ".sc6") || String::IEquals(ext, ".park"))
{
saves.push_back(std::move(name));
}
@@ -348,7 +348,7 @@ namespace OpenRCT2::Title
const std::string relativePath = parts[1].data();
for (size_t i = 0; i < saves.size(); i++)
{
if (String::Equals(relativePath, saves[i], true))
if (String::IEquals(relativePath, saves[i]))
{
saveIndex = static_cast<uint8_t>(i);
break;