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:
parent
889ddc10d6
commit
1490f6f082
1 changed files with 3 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue