mirror of
https://github.com/AquariaOSE/Aquaria.git
synced 2024-12-25 14:15:46 +00:00
Fix one oversight that prevented localizing scripts properly
This commit is contained in:
parent
8bd1454eee
commit
9c76fa7ed4
1 changed files with 2 additions and 1 deletions
|
@ -8952,7 +8952,8 @@ void ScriptInterface::shutdown()
|
|||
|
||||
Script *ScriptInterface::openScript(const std::string &file, bool ignoremissing /* = false */)
|
||||
{
|
||||
std::string realFile = core->adjustFilenameCase(file);
|
||||
std::string realFile = localisePath(file, dsq->mod.isActive() ? dsq->mod.getPath() : "");
|
||||
realFile = core->adjustFilenameCase(realFile);
|
||||
bool loadedScript = false;
|
||||
|
||||
lua_getglobal(baseState, "_scriptvars");
|
||||
|
|
Loading…
Reference in a new issue