Use com_restart in updater
This commit is contained in:
parent
f1563dc0e6
commit
0e8cecd0c3
@ -43,8 +43,12 @@ namespace mods
|
|||||||
scheduler::once([]()
|
scheduler::once([]()
|
||||||
{
|
{
|
||||||
release_assets = true;
|
release_assets = true;
|
||||||
game::Com_Shutdown("");
|
const auto _0 = gsl::finally([]()
|
||||||
|
{
|
||||||
release_assets = false;
|
release_assets = false;
|
||||||
|
});
|
||||||
|
|
||||||
|
game::Com_Shutdown("");
|
||||||
}, scheduler::pipeline::main);
|
}, scheduler::pipeline::main);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -110,6 +114,16 @@ namespace mods
|
|||||||
mod_path.clear();
|
mod_path.clear();
|
||||||
restart();
|
restart();
|
||||||
});
|
});
|
||||||
|
|
||||||
|
command::add("com_restart", []()
|
||||||
|
{
|
||||||
|
if (!game::Com_InFrontend())
|
||||||
|
{
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
restart();
|
||||||
|
});
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
@ -92,7 +92,7 @@ function startupdatedownload(popup, autoclose)
|
|||||||
end
|
end
|
||||||
})
|
})
|
||||||
else
|
else
|
||||||
Engine.Exec("lui_restart")
|
Engine.Exec("com_restart")
|
||||||
end
|
end
|
||||||
|
|
||||||
if (autoclose) then
|
if (autoclose) then
|
||||||
|
Loading…
x
Reference in New Issue
Block a user