mirror of
https://github.com/BeamMP/BeamMP-Launcher.git
synced 2025-07-01 07:25:34 +00:00
fix --no-update flag on windows
This commit is contained in:
parent
188a31c69e
commit
5368d16f27
@ -252,7 +252,15 @@ void InitLauncher(int argc, char* argv[]) {
|
||||
CheckLocalKey();
|
||||
ConfigInit();
|
||||
CustomPort(argc, argv);
|
||||
CheckForUpdates(argc, argv, std::string(GetVer()) + GetPatch());
|
||||
bool update = true;
|
||||
for (int i = 1; i < argc; ++i) {
|
||||
if (std::string_view(argv[i]) == "--no-update") {
|
||||
update = false;
|
||||
}
|
||||
}
|
||||
if (update) {
|
||||
CheckForUpdates(argc, argv, std::string(GetVer()) + GetPatch());
|
||||
}
|
||||
}
|
||||
#elif defined(__linux__)
|
||||
void InitLauncher(int argc, char* argv[]) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user