From b987b7a8e5a78ff3cd63da062917b1c5fce91cc2 Mon Sep 17 00:00:00 2001 From: aunsane Date: Wed, 21 Mar 2018 01:28:14 +0300 Subject: MurLua: various fixes - fixed script reloading - fixed string interpolation - hook and service refs moved to Enviroment - removed RegisterProtocol from m_protocols - code cleanup - version bump --- plugins/MirLua/src/mlua_script_loader.cpp | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) (limited to 'plugins/MirLua/src/mlua_script_loader.cpp') diff --git a/plugins/MirLua/src/mlua_script_loader.cpp b/plugins/MirLua/src/mlua_script_loader.cpp index 9f9386a95e..60ceb5cbb5 100644 --- a/plugins/MirLua/src/mlua_script_loader.cpp +++ b/plugins/MirLua/src/mlua_script_loader.cpp @@ -13,8 +13,7 @@ void CMLuaScriptLoader::LoadScript(const wchar_t *scriptDir, const wchar_t *file CMLuaScript *script = new CMLuaScript(L, path); g_mLua->Scripts.insert(script); - if (db_get_b(NULL, MODULE, _T2A(file), 1) == FALSE) - { + if (db_get_b(NULL, MODULE, _T2A(file), 1) == FALSE) { Log(L"%s:PASS", path); return; } @@ -35,10 +34,8 @@ void CMLuaScriptLoader::LoadScripts() WIN32_FIND_DATA fd; HANDLE hFind = FindFirstFile(searchMask, &fd); - if (hFind != INVALID_HANDLE_VALUE) - { - do - { + if (hFind != INVALID_HANDLE_VALUE) { + do { if (fd.dwFileAttributes & FILE_ATTRIBUTE_DIRECTORY) continue; LoadScript(scriptDir, fd.cFileName); -- cgit v1.2.3