Add -noupdate flag

This commit is contained in:
Maurice Heumann 2023-03-28 19:06:48 +02:00
parent cc4fb88e4e
commit c7bb47cd08

View File

@ -3,14 +3,18 @@
#include "updater.hpp" #include "updater.hpp"
#include "game/game.hpp" #include "game/game.hpp"
#include <utils/io.hpp> #include <utils/flags.hpp>
#include <updater/updater.hpp> #include <updater/updater.hpp>
namespace updater namespace updater
{ {
void update() void update()
{ {
if (utils::flags::has_flag("noupdate"))
{
return;
}
try try
{ {
run(game::get_appdata_path()); run(game::get_appdata_path());