From 92c44b19c5b767b6177caf6b660a6a2c2d2f87fc Mon Sep 17 00:00:00 2001 From: Anonymous275 Date: Sat, 14 Nov 2020 23:26:42 +0200 Subject: [PATCH] HotSwap linux fix --- src/Lua/LuaMain.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Lua/LuaMain.cpp b/src/Lua/LuaMain.cpp index 12c139a..7ff4bfc 100644 --- a/src/Lua/LuaMain.cpp +++ b/src/Lua/LuaMain.cpp @@ -57,12 +57,12 @@ void FolderList(const std::string& Path, bool HotSwap) { if (stat(Script->GetFileName().c_str(), &Info) != 0) { Script->SetStopThread(true); PluginEngine.erase(Script); - info(Sec("[HOTSWAP] Removed : ") + Script->GetFileName().substr(Script->GetFileName().find('\\'))); + info(Sec("[HOTSWAP] Removed removed script due to delete")); break; } if (Script->GetLastWrite() != fs::last_write_time(Script->GetFileName())) { Script->SetStopThread(true); - info(Sec("[HOTSWAP] Updated : ") + Script->GetFileName().substr(Script->GetFileName().find('\\'))); + info(Sec("[HOTSWAP] Updated Scripts due to edit")); Script->SetLastWrite(fs::last_write_time(Script->GetFileName())); Script->Reload(); }