mirror of
https://github.com/OpenMW/openmw.git
synced 2025-01-30 13: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();
|
mScripts.emplace_back();
|
||||||
ESM::LuaScriptCfg& script = mScripts.back();
|
ESM::LuaScriptCfg& script = mScripts.back();
|
||||||
script.mScriptPath = esm.getHString();
|
script.mScriptPath = VFS::Path::Normalized(esm.getHString());
|
||||||
|
|
||||||
esm.getSubNameIs("LUAF");
|
esm.getSubNameIs("LUAF");
|
||||||
esm.getSubHeader();
|
esm.getSubHeader();
|
||||||
|
@ -161,7 +161,7 @@ void ESM::LuaScripts::load(ESMReader& esm)
|
||||||
{
|
{
|
||||||
while (esm.isNextSub("LUAS"))
|
while (esm.isNextSub("LUAS"))
|
||||||
{
|
{
|
||||||
std::string name = esm.getHString();
|
VFS::Path::Normalized name(esm.getHString());
|
||||||
std::string data = loadLuaBinaryData(esm);
|
std::string data = loadLuaBinaryData(esm);
|
||||||
std::vector<LuaTimer> timers;
|
std::vector<LuaTimer> timers;
|
||||||
while (esm.isNextSub("LUAT"))
|
while (esm.isNextSub("LUAT"))
|
||||||
|
|
Loading…
Reference in a new issue