256 Bytes ought to be enough for anybody ... hmm, better 512.
Why /sim/fg-current at all? Because we have a file selector dialog (still unfinished), and one might like to start it from the current directory, to find saved flights/screenshots/whatever.
This commit is contained in:
parent
0c6ecd1271
commit
49a89950a8
1 changed files with 1 additions and 1 deletions
|
@ -1313,7 +1313,7 @@ bool fgInitGeneral() {
|
|||
}
|
||||
#endif
|
||||
|
||||
char buf[256], *cwd = getcwd(buf, 256);
|
||||
char buf[512], *cwd = getcwd(buf, 512);
|
||||
fgSetString("/sim/fg-current", cwd ? cwd : "");
|
||||
return true;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue