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

View File

@@ -13,6 +13,9 @@
#include <curl/curl.h>
#include <iostream>
#include <thread>
#include "Options.h"
Options options;
[[noreturn]] void flush() {
while (true) {
@@ -45,7 +48,8 @@ int main(int argc, char** argv) try {
}
}
InitLauncher(argc, argv);
InitOptions(argc, argv, options);
InitLauncher();
info("IMPORTANT: You MUST keep this window open to play BeamMP!");