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#include <wx/app.h>
25
27{
28 wxFileName fn(shortFileName);
29
30 return fn.GetLongPath();
31}
32
34{
35 static bool found = false;
36 static FilePath path;
37
38 if (!found) {
39 path = wxStandardPaths::Get().GetExecutablePath();
40
41 found = true;
42 }
43
44 return path;
45}
46
wxString FilePath
Definition: Project.h:20
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:26