1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-02-22 04:09:45 +00:00

Fix: lower content file names in menu.getSaves

This commit is contained in:
Petr Mikheev 2023-10-31 10:24:33 +01:00
parent 889ddc10d6
commit 1490f6f082

View file

@ -1,5 +1,7 @@
#include "menuscripts.hpp"
#include <components/misc/strings/lower.hpp>
#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;
}