FlightGear version check: Difference between revisions

Jump to navigation Jump to search
m
Line 288: Line 288:
     var (major, minor, patch) = split(".", acversion);
     var (major, minor, patch) = split(".", acversion);
})();
})();
</syntaxhighlight>
If the check failed, we can directly show the corresponding dialog, while logging everything to the console/log file:
<syntaxhighlight lang="nasal">
fgcommand('dialog-show', props.Node.new({'dialog-name':'version-mismatch'}) );
</syntaxhighlight>
</syntaxhighlight>


Navigation menu