feat(Globals): Added window bool states to permanent settings
This commit is contained in:
parent
9b0bae0272
commit
c05d1cb8f4
@ -46,6 +46,9 @@ struct globals {
|
|||||||
this->vehicle.speedo_meter = (SpeedoMeter)j["vehicle"]["speedo_meter"];
|
this->vehicle.speedo_meter = (SpeedoMeter)j["vehicle"]["speedo_meter"];
|
||||||
|
|
||||||
this->weapons.custom_weapon = (CustomWeapon)j["weapons"]["custom_weapon"];
|
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()
|
nlohmann::json to_json()
|
||||||
@ -68,6 +71,12 @@ struct globals {
|
|||||||
"weapons", {
|
"weapons", {
|
||||||
{ "custom_weapon", (int)this->weapons.custom_weapon }
|
{ "custom_weapon", (int)this->weapons.custom_weapon }
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"window", {
|
||||||
|
{ "log", this->window.log },
|
||||||
|
{ "main", this->window.main }
|
||||||
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user