mirror of
https://github.com/OpenMW/openmw.git
synced 2025-02-22 20:09:43 +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 "menuscripts.hpp"
|
||||||
|
|
||||||
|
#include <components/misc/strings/lower.hpp>
|
||||||
|
|
||||||
#include "../mwbase/environment.hpp"
|
#include "../mwbase/environment.hpp"
|
||||||
#include "../mwbase/statemanager.hpp"
|
#include "../mwbase/statemanager.hpp"
|
||||||
#include "../mwstate/character.hpp"
|
#include "../mwstate/character.hpp"
|
||||||
|
@ -85,7 +87,7 @@ namespace MWLua
|
||||||
slotInfo["playerLevel"] = slot.mProfile.mPlayerLevel;
|
slotInfo["playerLevel"] = slot.mProfile.mPlayerLevel;
|
||||||
sol::table contentFiles(lua, sol::create);
|
sol::table contentFiles(lua, sol::create);
|
||||||
for (size_t i = 0; i < slot.mProfile.mContentFiles.size(); ++i)
|
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;
|
slotInfo["contentFiles"] = contentFiles;
|
||||||
saves[slot.mPath.filename().string()] = slotInfo;
|
saves[slot.mPath.filename().string()] = slotInfo;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue