Skip to content

Commit

Permalink
SporeModManager: lowercase text in ParseInstallLocation()
Browse files Browse the repository at this point in the history
  • Loading branch information
Rosalie241 committed Dec 31, 2023
1 parent aef1f1d commit 3022b86
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions SporeModManager/SporeModManagerHelpers/SporeModXml.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -37,11 +37,15 @@ static SporeMod::InstallLocation ParseInstallLocation(std::string text)
{
SporeMod::InstallLocation installLocation;

if (text == "GalacticAdventures" || text == "GalacticAdventuresData")
// lowercase text to make the
// value case insensitive
text = String::Lowercase(text);

if (text == "galacticadventures" || text == "galacticadventuresdata")
{
installLocation = SporeMod::InstallLocation::GalacticAdventuresData;
}
else if (text == "CoreSpore" || text == "CoreSporeData")
else if (text == "spore" || text == "coresporedata")
{
installLocation = SporeMod::InstallLocation::CoreSporeData;
}
Expand Down

0 comments on commit 3022b86

Please sign in to comment.