From 1490f6f082562f4943e4f1fbaabb877249def658 Mon Sep 17 00:00:00 2001 From: Petr Mikheev Date: Tue, 31 Oct 2023 10:24:33 +0100 Subject: [PATCH] Fix: lower content file names in `menu.getSaves` --- apps/openmw/mwlua/menuscripts.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/apps/openmw/mwlua/menuscripts.cpp b/apps/openmw/mwlua/menuscripts.cpp index 300f5ad489..16e57961b1 100644 --- a/apps/openmw/mwlua/menuscripts.cpp +++ b/apps/openmw/mwlua/menuscripts.cpp @@ -1,5 +1,7 @@ #include "menuscripts.hpp" +#include + #include "../mwbase/environment.hpp" #include "../mwbase/statemanager.hpp" #include "../mwstate/character.hpp" @@ -85,7 +87,7 @@ namespace MWLua slotInfo["playerLevel"] = slot.mProfile.mPlayerLevel; sol::table contentFiles(lua, sol::create); for (size_t i = 0; i < slot.mProfile.mContentFiles.size(); ++i) - contentFiles[i + 1] = slot.mProfile.mContentFiles[i]; + contentFiles[i + 1] = Misc::StringUtils::lowerCase(slot.mProfile.mContentFiles[i]); slotInfo["contentFiles"] = contentFiles; saves[slot.mPath.filename().string()] = slotInfo; }