summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--plugins/MirLua/src/script.cpp2
-rw-r--r--plugins/MirLua/src/script_loader.cpp3
2 files changed, 3 insertions, 2 deletions
diff --git a/plugins/MirLua/src/script.cpp b/plugins/MirLua/src/script.cpp
index 976ed79688..0b6b148536 100644
--- a/plugins/MirLua/src/script.cpp
+++ b/plugins/MirLua/src/script.cpp
@@ -77,6 +77,7 @@ bool CMLuaScript::Load()
}
status = Loaded;
+ Log(L"%s:OK", filePath);
if (lua_isnoneornil(L, -1))
return true;
@@ -132,6 +133,7 @@ void CMLuaScript::Unload()
bool CMLuaScript::Reload()
{
+ Log(L"Reloading script %s", filePath);
Unload();
return Load();
}
diff --git a/plugins/MirLua/src/script_loader.cpp b/plugins/MirLua/src/script_loader.cpp
index 0092cca372..e192446968 100644
--- a/plugins/MirLua/src/script_loader.cpp
+++ b/plugins/MirLua/src/script_loader.cpp
@@ -36,8 +36,7 @@ void CMLuaScriptLoader::LoadScript(const wchar_t *scriptDir, const wchar_t *file
return;
}
- if (script->Load())
- Log(L"%s:OK", path);
+ script->Load();
}
void CMLuaScriptLoader::LoadScripts()