mirror of
https://github.com/BeamMP/BeamMP-Launcher.git
synced 2026-02-16 02:30:44 +00:00
fix various commandline argument related things
This commit is contained in:
@@ -3,18 +3,22 @@
|
||||
#include <string>
|
||||
|
||||
struct Options {
|
||||
#if defined(_WIN32)
|
||||
std::string executable_name = "BeamMP-Launcher.exe";
|
||||
#elif defined(__linux__)
|
||||
std::string executable_name = "BeamMP-Launcher";
|
||||
#endif
|
||||
unsigned int port = 4444;
|
||||
bool verbose = false;
|
||||
bool no_download = false;
|
||||
bool no_update = false;
|
||||
bool no_launch = false;
|
||||
char **game_arguments = nullptr;
|
||||
const char **game_arguments = nullptr;
|
||||
int game_arguments_length = 0;
|
||||
char** argv = nullptr;
|
||||
const char** argv = nullptr;
|
||||
int argc = 0;
|
||||
};
|
||||
|
||||
void InitOptions(int argc, char *argv[], Options &options);
|
||||
void InitOptions(int argc, const char *argv[], Options &options);
|
||||
|
||||
extern Options options;
|
||||
|
||||
@@ -11,10 +11,9 @@
|
||||
#include <vector>
|
||||
|
||||
void InitLauncher();
|
||||
std::string GetEP(char* P = nullptr);
|
||||
std::string GetEP(const char* P = nullptr);
|
||||
std::string GetGamePath();
|
||||
std::string GetVer();
|
||||
std::string GetPatch();
|
||||
std::string GetEN();
|
||||
void ConfigInit();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user