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 "game/game.hpp"
#include <utils/io.hpp>
#include <utils/flags.hpp>
#include <updater/updater.hpp>
namespace updater
{
void update()
{
if (utils::flags::has_flag("noupdate"))
{
return;
}
try
{
run(game::get_appdata_path());