From 97bdf1a8423eee8f217d0f798f81459ee90e8ed4 Mon Sep 17 00:00:00 2001 From: /dev/urandom Date: Sat, 4 Feb 2017 18:56:22 +0100 Subject: [PATCH] [News] Run Updater with -update -c flags to tell it to restart IW4x after updating. --- src/Components/Modules/News.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Components/Modules/News.cpp b/src/Components/Modules/News.cpp index 0a69c701..a8d8ae0f 100644 --- a/src/Components/Modules/News.cpp +++ b/src/Components/Modules/News.cpp @@ -51,7 +51,7 @@ namespace Components ZeroMemory(&pInfo, sizeof(pInfo)); sInfo.cb = sizeof(sInfo); - CreateProcessA("updater.exe", nullptr, nullptr, nullptr, false, NULL, nullptr, nullptr, &sInfo, &pInfo); + CreateProcessA("updater.exe -update -c", nullptr, nullptr, nullptr, false, NULL, nullptr, nullptr, &sInfo, &pInfo); if (pInfo.hThread && pInfo.hThread != INVALID_HANDLE_VALUE) CloseHandle(pInfo.hThread); if (pInfo.hProcess && pInfo.hProcess != INVALID_HANDLE_VALUE) CloseHandle(pInfo.hProcess);