From d32bcc19f3ccbc001ab02e7534c111da97093eb9 Mon Sep 17 00:00:00 2001 From: Rosalie Wanders Date: Mon, 25 Jul 2022 22:24:10 +0200 Subject: [PATCH] SporeModManager: lowercase extension before checking it --- SporeModManager/SporeModManager.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/SporeModManager/SporeModManager.cpp b/SporeModManager/SporeModManager.cpp index 1e50d12..d230561 100644 --- a/SporeModManager/SporeModManager.cpp +++ b/SporeModManager/SporeModManager.cpp @@ -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); @@ -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))