Audacity
3.2.0
libraries
lib-files
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
25
FilePath
PlatformCompatibility::GetLongFileName
(
const
FilePath
&shortFileName)
26
{
27
wxFileName
fn
(shortFileName);
28
29
return
fn
.GetLongPath();
30
}
31
32
const
FilePath
&
PlatformCompatibility::GetExecutablePath
()
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
PlatformCompatibility.h
FilePath
wxString FilePath
Definition:
Project.h:21
fn
static const auto fn
Definition:
WaveformView.cpp:1082
PlatformCompatibility::GetExecutablePath
static const FilePath & GetExecutablePath()
Definition:
PlatformCompatibility.cpp:32
PlatformCompatibility::GetLongFileName
static FilePath GetLongFileName(const FilePath &shortFileName)
Definition:
PlatformCompatibility.cpp:25
BasicUI::Get
Services * Get()
Fetch the global instance, or nullptr if none is yet installed.
Definition:
BasicUI.cpp:196
Generated by
1.9.3