mirror of
https://github.com/davidgiven/fluxengine.git
synced 2025-10-31 11:17:01 -07:00
Any drive settings in the global config will override loaded settings from an
fl2 file.
This commit is contained in:
@@ -37,10 +37,9 @@ public:
|
||||
{
|
||||
_proto = loadFl2File(_config.filename());
|
||||
|
||||
if (::globalConfig()->has_drive())
|
||||
warning(
|
||||
"FLUX: overriding drive configuration with flux file contents");
|
||||
::globalConfig()->mutable_drive()->MergeFrom(_proto.drive());
|
||||
DriveProto d = _proto.drive();
|
||||
d.MergeFrom(globalConfig()->drive());
|
||||
*(globalConfig()->mutable_drive()) = d;
|
||||
}
|
||||
|
||||
public:
|
||||
|
||||
Reference in New Issue
Block a user