From 3b83a5d9bd20137ef768a59a6476f0986bcd974c Mon Sep 17 00:00:00 2001 From: def Date: Fri, 12 Feb 2021 10:21:23 +0100 Subject: [PATCH] Don't try to update .so files on Windows --- src/engine/client/updater.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/engine/client/updater.cpp b/src/engine/client/updater.cpp index c3b6642e6..8fed4a8c6 100644 --- a/src/engine/client/updater.cpp +++ b/src/engine/client/updater.cpp @@ -156,6 +156,11 @@ bool CUpdater::MoveFile(const char *pFile) return Success; #endif +#if !defined(CONF_PLATFORM_LINUX) + if(!str_comp_nocase(pFile + len - 4, ".so")) + return Success; +#endif + if(!str_comp_nocase(pFile + len - 4, ".dll") || !str_comp_nocase(pFile + len - 4, ".ttf") || !str_comp_nocase(pFile + len - 3, ".so")) { str_format(aBuf, sizeof(aBuf), "%s.old", pFile);