1
0
Fork 0

src/Main/main.cxx: support for properties locking control.

Define properties that are passed to new SGPropertyLockControl() function in
order to allow runtime control of whether we use property locking.
This commit is contained in:
Julian Smith 2021-05-22 11:56:22 +01:00
parent 2e030218ea
commit 90625848de

View file

@ -617,6 +617,13 @@ int fgMainInit( int argc, char **argv )
}
}
{
SGPropertyNode* active = globals->get_props()->getNode("/sim/property-locking", true /*create*/);
SGPropertyNode* verbose = globals->get_props()->getNode("/sim/property-locking-verbose", true /*create*/);
SGPropertyNode* timing = globals->get_props()->getNode("/sim/property-locking-timing", true /*create*/);
SGPropertyLockControl(active, verbose, timing);
}
const bool readOnlyFGHome = fgGetBool("/sim/fghome-readonly");
if (!readOnlyFGHome) {
// now home is initialised, we can log to a file inside it