add nlohmann/json

this will conflict with a change in the http branch, but i dont care
right now
This commit is contained in:
Lion Kortlepel 2022-02-11 10:18:56 +01:00
parent b72de4bd0a
commit f26ca6b40d
No known key found for this signature in database
GPG Key ID: 4322FF2B4C71259B
3 changed files with 8 additions and 2 deletions

5
.gitmodules vendored
View File

@ -21,4 +21,7 @@
url = https://github.com/nih-at/libzip
[submodule "deps/cpp-httplib"]
path = deps/cpp-httplib
url = https://github.com/yhirose/cpp-httplib
url = https://github.com/yhirose/cpp-httplib
[submodule "deps/json"]
path = deps/json
url = https://github.com/nlohmann/json

1
deps/json vendored Submodule

@ -0,0 +1 @@
Subproject commit eb2182414749825be086c825edb5229e5c28503d

View File

@ -7,13 +7,15 @@
#include <any>
#include <sstream>
#include <nlohmann/json.hpp>
#include "LuaAPI.h"
#undef GetObject // Fixes Windows
#include "Json.h"
namespace json = rapidjson;
namespace json = nlohmann::json;
TServer::TServer(const std::vector<std::string_view>& Arguments) {
beammp_info("BeamMP Server v" + Application::ServerVersionString());