mirror of
https://github.com/BeamMP/BeamMP-Launcher.git
synced 2026-08-27 20:49:40 +00:00
add command-line options
This commit is contained in:
+2
-1
@@ -8,6 +8,7 @@
|
||||
#include <filesystem>
|
||||
#include <fstream>
|
||||
#include <nlohmann/json.hpp>
|
||||
#include "Options.h"
|
||||
namespace fs = std::filesystem;
|
||||
|
||||
std::string Branch;
|
||||
@@ -15,7 +16,7 @@ std::string CachingDirectory = "./Resources";
|
||||
|
||||
void ParseConfig(const nlohmann::json& d) {
|
||||
if (d["Port"].is_number()) {
|
||||
DEFAULT_PORT = d["Port"].get<int>();
|
||||
options.port = d["Port"].get<int>();
|
||||
}
|
||||
// Default -1
|
||||
// Release 1
|
||||
|
||||
Reference in New Issue
Block a user