mirror of
https://github.com/OpenMW/openmw.git
synced 2025-01-29 17:15:34 +00:00
Use normalized path in ESM LuaScripts
This commit is contained in:
parent
2ddc77138a
commit
597d1853ee
1 changed files with 2 additions and 2 deletions
|
@ -56,7 +56,7 @@ void ESM::LuaScriptsCfg::load(ESMReader& esm)
|
|||
{
|
||||
mScripts.emplace_back();
|
||||
ESM::LuaScriptCfg& script = mScripts.back();
|
||||
script.mScriptPath = esm.getHString();
|
||||
script.mScriptPath = VFS::Path::Normalized(esm.getHString());
|
||||
|
||||
esm.getSubNameIs("LUAF");
|
||||
esm.getSubHeader();
|
||||
|
@ -161,7 +161,7 @@ void ESM::LuaScripts::load(ESMReader& esm)
|
|||
{
|
||||
while (esm.isNextSub("LUAS"))
|
||||
{
|
||||
std::string name = esm.getHString();
|
||||
VFS::Path::Normalized name(esm.getHString());
|
||||
std::string data = loadLuaBinaryData(esm);
|
||||
std::vector<LuaTimer> timers;
|
||||
while (esm.isNextSub("LUAT"))
|
||||
|
|
Loading…
Reference in a new issue