Audacity 3.2.0
PlatformCompatibility.cpp
Go to the documentation of this file.
1/**********************************************************************
2
3 Audacity: A Digital Audio Editor
4
5 PlatformCompatibility.cpp
6
7 Markus Meyer
8
9*******************************************************************//*******************************************************************/
17
18
20
21#include <wx/filefn.h>
22#include <wx/filename.h>
23#include <wx/stdpaths.h>
24
26{
27 wxFileName fn(shortFileName);
28
29 return fn.GetLongPath();
30}
31
33{
34 static bool found = false;
35 static FilePath path;
36
37 if (!found) {
38 path = wxStandardPaths::Get().GetExecutablePath();
39
40 found = true;
41 }
42
43 return path;
44}
45
wxString FilePath
Definition: Project.h:21
static const auto fn
static const FilePath & GetExecutablePath()
static FilePath GetLongFileName(const FilePath &shortFileName)
Services * Get()
Fetch the global instance, or nullptr if none is yet installed.
Definition: BasicUI.cpp:196