#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>
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 )) {
// Initialize the localization
SGPropertyNode *fgInitLocale(const char *language);
-/// retrieve the user's desktop directory path
-SGPath platformDesktopPath();
-
// Init navaids and waypoints
bool fgInitNav ();