diff options
author | aunsane <aunsane@gmail.com> | 2018-05-20 21:51:19 +0300 |
---|---|---|
committer | aunsane <aunsane@gmail.com> | 2018-05-20 21:51:19 +0300 |
commit | e79355b2127afe4cdfe4676e76a165fefe6e6c2a (patch) | |
tree | 928556d4829431b7a0f280adc4178e9a749a9445 | |
parent | b9f48f4a1d76c9cec03636363075b3e9e64cfc9f (diff) |
MirLua: add logs
-rw-r--r-- | plugins/MirLua/src/script.cpp | 2 | ||||
-rw-r--r-- | plugins/MirLua/src/script_loader.cpp | 3 |
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()
|