Audacity  3.0.3
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 
19 #include "PlatformCompatibility.h"
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 
PlatformCompatibility::GetLongFileName
static FilePath GetLongFileName(const FilePath &shortFileName)
Definition: PlatformCompatibility.cpp:26
fn
static const auto fn
Definition: WaveformView.cpp:1108
FilePath
wxString FilePath
Definition: Project.h:20
BasicUI::Get
Services * Get()
Fetch the global instance, or nullptr if none is yet installed.
Definition: BasicUI.cpp:26
PlatformCompatibility.h
PlatformCompatibility::GetExecutablePath
static const FilePath & GetExecutablePath()
Definition: PlatformCompatibility.cpp:33