1
0
Fork 0

- restore old $FG_HOME in <help>

- print target path to terminal
- minor optimization
This commit is contained in:
mfranz 2006-04-02 17:35:47 +00:00
parent 8c4a9aefb7
commit d52d4e9a8b
2 changed files with 5 additions and 4 deletions

View file

@ -75,7 +75,7 @@
<line></line>
<line>Exported data are written to:</line>
<line>&#32;&#32;~/.fgfs/ufo-model-export.xml (Unix)</line>
<line>&#32;&#32;My Documents\ufo-model-export.xml (Microsoft Windows)</line>
<line>&#32;&#32;%APPDATA%\flightgear.org\ufo-model-export.xml (Microsoft Windows)</line>
</help>
</sim>

View file

@ -78,8 +78,7 @@ coord_dist_sq = func(xyz0, xyz1) {
# sort vector of strings (bubblesort)
#
sort = func(list) {
var l = list;
sort = func(l) {
while (1) {
var n = 0;
for (var i = 0; i < size(l) - 1; i += 1) {
@ -775,7 +774,9 @@ exportData = func {
var tmp = "save-ufo-data";
save = props.globals.getNode(tmp, 1);
props.copy(modelmgr.get_data(), save);
savexml(getprop("/sim/fg-home") ~ "/ufo-model-export.xml", save.getPath());
var path = getprop("/sim/fg-home") ~ "/ufo-model-export.xml";
savexml(path, save.getPath());
print("model data exported to ", path);
props.globals.removeChild(tmp);
}