add command-line options

This commit is contained in:
Tixx
2024-09-22 22:02:36 +02:00
parent 768f11f6ec
commit aca61886d0
11 changed files with 123 additions and 52 deletions

17
include/Options.h Normal file
View File

@@ -0,0 +1,17 @@
#pragma once
#include <string>
struct Options {
std::string executable_name = "BeamMP-Launcher.exe";
unsigned int port = 4444;
bool verbose = false;
bool no_download = false;
bool no_launch = false;
char **game_arguments = nullptr;
int game_arguments_length = 0;
};
void InitOptions(int argc, char *argv[], Options &options);
extern Options options;