Audacity  3.0.3
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 }

References BasicUI::Get().

Referenced by VSTEffectsModule::DiscoverPluginsAtPath(), PluginManager::FindFilesInPathList(), and PluginManager::LoadGroup().

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 }

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:
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