Add -noupdate flag
This commit is contained in:
parent
cc4fb88e4e
commit
c7bb47cd08
@ -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());
|
||||||
|
Loading…
x
Reference in New Issue
Block a user