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 32 of file PlatformCompatibility.cpp.

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

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 25 of file PlatformCompatibility.cpp.

26{
27 wxFileName fn(shortFileName);
28
29 return fn.GetLongPath();
30}
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: