1
0
Fork 0
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:
fgenesis 2012-07-22 17:53:21 +02:00
parent 8bd1454eee
commit 9c76fa7ed4

View file

@ -8952,7 +8952,8 @@ void ScriptInterface::shutdown()
Script *ScriptInterface::openScript(const std::string &file, bool ignoremissing /* = false */) 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; bool loadedScript = false;
lua_getglobal(baseState, "_scriptvars"); lua_getglobal(baseState, "_scriptvars");