Skip to content

Commit

Permalink
SporeModManager: lowercase extension before checking it
Browse files Browse the repository at this point in the history
  • Loading branch information
Rosalie241 committed Jul 25, 2022
1 parent 7be6cc4 commit d32bcc1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions SporeModManager/SporeModManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ bool SporeModManager::InstallMod(std::filesystem::path path)
return false;
}

std::string extension = path.extension().string();
std::string extension = String::Lowercase(path.extension().string());
if (extension == ".sporemod")
{
return SporeMod::InstallSporeMod(path);
Expand Down Expand Up @@ -81,7 +81,7 @@ bool SporeModManager::UpdateMod(std::filesystem::path path)
return false;
}

std::string extension = path.extension().string();
std::string extension = String::Lowercase(path.extension().string());
if (extension == ".sporemod")
{
if (!Zip::OpenFile(zipFile, path))
Expand Down

0 comments on commit d32bcc1

Please sign in to comment.