From c7bb47cd0852804655800daa7063b0dac1abd3b6 Mon Sep 17 00:00:00 2001 From: Maurice Heumann Date: Tue, 28 Mar 2023 19:06:48 +0200 Subject: [PATCH] Add -noupdate flag --- src/client/component/updater.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/client/component/updater.cpp b/src/client/component/updater.cpp index 63a0230a..b9e63101 100644 --- a/src/client/component/updater.cpp +++ b/src/client/component/updater.cpp @@ -3,14 +3,18 @@ #include "updater.hpp" #include "game/game.hpp" -#include - +#include #include namespace updater { void update() { + if (utils::flags::has_flag("noupdate")) + { + return; + } + try { run(game::get_appdata_path());