Audacity 3.2.0
Static Public Member Functions | List of all members
PlatformCompatibility Class Reference

Filename Compatibility utilities. More...

#include <PlatformCompatibility.h>

Static Public Member Functions

static FilePath GetLongFileName (const FilePath &shortFileName)
 
static const FilePathGetExecutablePath ()
 

Detailed Description

Filename Compatibility utilities.

See also
FileNames

Definition at line 25 of file PlatformCompatibility.h.

Member Function Documentation

◆ GetExecutablePath()

const FilePath & PlatformCompatibility::GetExecutablePath ( )
static

Definition at line 33 of file PlatformCompatibility.cpp.

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}
wxString FilePath
Definition: Project.h:20
Services * Get()
Fetch the global instance, or nullptr if none is yet installed.
Definition: BasicUI.cpp:194

References BasicUI::Get().

Referenced by PluginManager::FindFilesInPathList(), anonymous_namespace{FileNames.cpp}::GetUserTargetDir(), PluginManager::LoadGroup(), and PluginHost::Start().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ GetLongFileName()

FilePath PlatformCompatibility::GetLongFileName ( const FilePath shortFileName)
static

Definition at line 26 of file PlatformCompatibility.cpp.

27{
28 wxFileName fn(shortFileName);
29
30 return fn.GetLongPath();
31}
static const auto fn

References fn.

Referenced by ProjectFileManager::OpenFile().

Here is the caller graph for this function:

The documentation for this class was generated from the following files: