mirror of
https://github.com/BeamMP/BeamMP-Launcher.git
synced 2026-02-16 10:40:46 +00:00
add command-line options
This commit is contained in:
17
include/Options.h
Normal file
17
include/Options.h
Normal 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;
|
||||
Reference in New Issue
Block a user