From 3f61818c4e76fb0d0e5baec4f000e896ff146085 Mon Sep 17 00:00:00 2001 From: Yimura Date: Fri, 21 May 2021 14:13:00 +0200 Subject: [PATCH] feat(Globals): Added window bool states to permanent settings --- BigBaseV2/src/core/globals.hpp | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/BigBaseV2/src/core/globals.hpp b/BigBaseV2/src/core/globals.hpp index a3cc1007..f2636887 100644 --- a/BigBaseV2/src/core/globals.hpp +++ b/BigBaseV2/src/core/globals.hpp @@ -46,6 +46,9 @@ struct globals { this->vehicle.speedo_meter = (SpeedoMeter)j["vehicle"]["speedo_meter"]; this->weapons.custom_weapon = (CustomWeapon)j["weapons"]["custom_weapon"]; + + this->window.log = j["window"]["log"]; + this->window.main = j["window"]["main"]; } nlohmann::json to_json() @@ -68,6 +71,12 @@ struct globals { "weapons", { { "custom_weapon", (int)this->weapons.custom_weapon } } + }, + { + "window", { + { "log", this->window.log }, + { "main", this->window.main } + } } }; }