]> git.mxchange.org Git - flightgear.git/commitdiff
Kill off platformDesktopPath entirely
authorJames Turner <jmt@Bishop.local>
Wed, 19 Jun 2013 23:20:12 +0000 (00:20 +0100)
committerJames Turner <jmt@Bishop.local>
Wed, 19 Jun 2013 23:20:12 +0000 (00:20 +0100)
src/GUI/gui_funcs.cxx
src/Main/fg_init.hxx

index 1f78d45046767d62a56c0e25ecced56f8ed3f9e0..2a084dad679dde1b94be538768099eaca2ef9f5b 100644 (file)
@@ -52,7 +52,6 @@
 #include <Cockpit/panel.hxx>
 #include <Main/globals.hxx>
 #include <Main/fg_props.hxx>
-#include <Main/fg_init.hxx> // for platformDesktopPath
 #include <Main/fg_os.hxx>
 #include <Viewer/renderer.hxx>
 #include <Viewer/viewmgr.hxx>
@@ -481,7 +480,7 @@ namespace
 
             string dir = fgGetString("/sim/paths/screenshot-dir");
             if (dir.empty())
-              dir = platformDesktopPath().str();
+                dir = SGPath::desktop().str();
 
             _path.set(dir + '/');
             if (_path.create_dir( 0755 )) {
index 6341f43520c2e23da627810b5deb816733f73b3d..2d81cc82b55c3cc6662077c7d9c0e118eb76b7ca 100644 (file)
@@ -46,9 +46,6 @@ void fgOutputSettings();
 // Initialize the localization
 SGPropertyNode *fgInitLocale(const char *language);
 
-/// retrieve the user's desktop directory path
-SGPath platformDesktopPath();
-
 // Init navaids and waypoints
 bool fgInitNav ();