]> git.mxchange.org Git - flightgear.git/commit
Interpret environment variables and hostname on Windows
authorTorsten Dreyer <Torsten@t3r.de>
Fri, 6 Aug 2010 07:06:32 +0000 (09:06 +0200)
committerTorsten Dreyer <Torsten@t3r.de>
Fri, 6 Aug 2010 07:06:32 +0000 (09:06 +0200)
commitbb2d1f55e9912d3b9b81b6d5e12900f77eef4365
tree9059607e3e8f6e5048c3faeac01dcece0a5f0a13
parent1aa484aee5af0dcd89fcc5be9248f9d59363b3c0
Interpret environment variables and hostname on Windows

- Point the homedir variable to %APPDATA%/flightgear.org. This
enables .fgfsrc in this path for windows users.
- Evaluate the returncode of gethostname() to not strdup() bogus
characters on failure. Also mainly on windows.
src/Main/bootstrap.cxx
src/Main/fg_init.cxx