feat(Globals): Added window bool states to permanent settings

This commit is contained in:
Yimura 2021-05-21 14:13:00 +02:00
parent 9b0bae0272
commit c05d1cb8f4
No known key found for this signature in database
GPG Key ID: 3D8FF4397E768682

View File

@ -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 }
}
}
};
}