feat(Globals): Added debug window bool

This commit is contained in:
Yimura 2021-12-22 21:26:26 +01:00
parent 8e14b14664
commit 55f92dfb23
No known key found for this signature in database
GPG Key ID: 3D8FF4397E768682

View File

@ -22,11 +22,6 @@ struct globals {
}; };
struct protections { struct protections {
struct replay_interface {
bool attach = false;
bool cage = true;
};
struct script_events { struct script_events {
bool bounty = true; bool bounty = true;
bool ceo_ban = true; bool ceo_ban = true;
@ -47,7 +42,6 @@ struct globals {
bool vehicle_kick = true; bool vehicle_kick = true;
}; };
replay_interface replay_interface{};
script_events script_events{}; script_events script_events{};
}; };
@ -104,6 +98,7 @@ struct globals {
}; };
struct window { struct window {
bool debug = false;
bool handling = false; bool handling = false;
bool log = false; bool log = false;
bool main = true; bool main = true;
@ -181,6 +176,7 @@ struct globals {
this->weapons.custom_weapon = (CustomWeapon)j["weapons"]["custom_weapon"]; this->weapons.custom_weapon = (CustomWeapon)j["weapons"]["custom_weapon"];
this->window.debug = j["window"]["debug"];
this->window.handling = j["window"]["handling"]; this->window.handling = j["window"]["handling"];
this->window.log = j["window"]["log"]; this->window.log = j["window"]["log"];
this->window.main = j["window"]["main"]; this->window.main = j["window"]["main"];
@ -193,12 +189,6 @@ struct globals {
{ {
"protections", "protections",
{ {
{
"replay_interface", {
{ "attach", this->protections.replay_interface.attach },
{ "cage", this->protections.replay_interface.cage }
}
},
{ {
"script_events", { "script_events", {
{ "bounty", this->protections.script_events.bounty }, { "bounty", this->protections.script_events.bounty },
@ -282,6 +272,7 @@ struct globals {
}, },
{ {
"window", { "window", {
{ "debug", this->window.debug },
{ "handling", this->window.handling }, { "handling", this->window.handling },
{ "log", this->window.log }, { "log", this->window.log },
{ "main", this->window.main }, { "main", this->window.main },