1
0
Fork 0

remove unnecessary userarchive flags from defaults.xml

This commit is contained in:
Henning Stahlke 2020-03-08 20:46:56 +01:00
parent e8bf5dfccb
commit 4108652c94
2 changed files with 12 additions and 12 deletions

View file

@ -27,11 +27,11 @@ var loadDefaultsNasal = func {
if (defaults != nil) { if (defaults != nil) {
defaults = defaults.getNode("PropertyList/nasal"); defaults = defaults.getNode("PropertyList/nasal");
foreach (var mod; defaults.getChildren()) { foreach (var mod; defaults.getChildren()) {
var enabled = mod.getNode("enabled"); var enabled = mod.getNode("enabled",1);
if (string.lc(enabled.getValue()) == "true") enabled.setIntValue(1); if (string.lc(enabled.getValue()) == "true") enabled.setIntValue(1);
else enabled.setIntValue(0); else enabled.setIntValue(0);
enabled.setAttribute("userarchive", enabled.setAttribute("userarchive",
(mod.getNode("enabled/___userarchive").getValue() == "y") (mod.getNode("enabled/___userarchive",1).getValue() == "y")
); );
} }
} }

View file

@ -1336,7 +1336,7 @@ Started September 2000 by David Megginson, david@megginson.com
</logging> </logging>
<nasal> <nasal>
<tutorial> <tutorial>
<enabled type="bool" userarchive="n">false</enabled> <enabled type="bool">false</enabled>
</tutorial> </tutorial>
<local_weather> <local_weather>
<enabled type="bool" userarchive="y">false</enabled> <enabled type="bool" userarchive="y">false</enabled>
@ -1345,31 +1345,31 @@ Started September 2000 by David Megginson, david@megginson.com
<enabled type="bool" userarchive="y">false</enabled> <enabled type="bool" userarchive="y">false</enabled>
</jetways> </jetways>
<jetways_edit> <jetways_edit>
<enabled type="bool" userarchive="n">false</enabled> <enabled type="bool">false</enabled>
</jetways_edit> </jetways_edit>
<performance_monitor> <performance_monitor>
<enabled type="bool" userarchive="n">false</enabled> <enabled type="bool">false</enabled>
</performance_monitor> </performance_monitor>
<FailureMgr> <FailureMgr>
<enabled type="bool" userarchive="n">true</enabled> <enabled type="bool">true</enabled>
</FailureMgr> </FailureMgr>
<canvas> <canvas>
<enabled type="bool" userarchive="n">true</enabled> <enabled type="bool">true</enabled>
</canvas> </canvas>
<console> <console>
<enabled type="bool" userarchive="n">true</enabled> <enabled type="bool">true</enabled>
</console> </console>
<input_helpers> <input_helpers>
<enabled type="bool" userarchive="n">true</enabled> <enabled type="bool">true</enabled>
</input_helpers> </input_helpers>
<modules> <modules>
<enabled type="bool" userarchive="n">true</enabled> <enabled type="bool">true</enabled>
</modules> </modules>
<std> <std>
<enabled type="bool" userarchive="n">true</enabled> <enabled type="bool">true</enabled>
</std> </std>
<towing> <towing>
<enabled type="bool" userarchive="n">true</enabled> <enabled type="bool">true</enabled>
</towing> </towing>
</nasal> </nasal>
<scenery> <scenery>