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:
parent
2e030218ea
commit
90625848de
1 changed files with 7 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue