mirror of
https://github.com/BeamMP/BeamMP-Launcher.git
synced 2026-04-03 14:26:15 +00:00
Added cli option for user-path
This commit is contained in:
@@ -86,6 +86,12 @@ void InitOptions(int argc, const char *argv[], Options &options) {
|
||||
options.no_download = true;
|
||||
options.no_launch = true;
|
||||
options.no_update = true;
|
||||
} else if (argument == "--user-path") {
|
||||
if (i + 1 >= argc) {
|
||||
error("No user path specified after flag");
|
||||
}
|
||||
options.user_path = argv[i + 1];
|
||||
i++;
|
||||
} else if (argument == "--" || argument == "--game") {
|
||||
options.game_arguments = &argv[i + 1];
|
||||
options.game_arguments_length = argc - i - 1;
|
||||
@@ -101,6 +107,7 @@ void InitOptions(int argc, const char *argv[], Options &options) {
|
||||
"\t--no-update Skip applying launcher updates (you must update manually)\n"
|
||||
"\t--no-launch Skip launching the game (you must launch the game manually)\n"
|
||||
"\t--dev Developer mode, same as --verbose --no-download --no-launch --no-update\n"
|
||||
"\t--user-path <path> Path to BeamNG's User Path\n"
|
||||
"\t--game <args...> Passes ALL following arguments to the game, see also `--`\n"
|
||||
<< std::flush;
|
||||
exit(0);
|
||||
|
||||
Reference in New Issue
Block a user