adapt: adapt to GMLIB v0.12.6

This commit is contained in:
Tsubasa6848
2024-05-26 06:40:52 +08:00
Unverified
parent 1e40ff52c6
commit b8718b941f
9 changed files with 100 additions and 110 deletions
+20 -16
View File
@@ -1,18 +1,22 @@
#pragma once
#include "Global.h"
#include <iostream>
std::string defaultConfig = R"({
"ConsoleLog": {
"JoinMessage": true,
"LeftMessage": true,
"DeathMessage": true
},
"FileLog": {
"Enabled": false,
"Path": "./logs/DeathLog.log"
},
"ServerSideTranslation": {
"Enabled": false,
"Language": "en_US"
}
})";
struct Config {
int version = 1;
struct consoleLog {
bool JoinMessage = true;
bool LeftMessage = true;
bool DeathMessage = true;
} ConsoleLog;
struct fileLog {
bool Enabled = false;
std::string Path = "./logs/DeathLog.log";
} FileLog;
struct serverSideTranslation {
bool Enabled = false;
std::string Language = "en_US";
} ServerSideTranslation;
};