1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-06-16 08:09:32 +02:00
audacity/src/PlatformCompatibility.cpp
Panagiotis Vasilopoulos 44968d3ac3
Rebranding: Replace 'Audacity: A Digital Audio Editor' in source files (#248)
List of commands that were executed in the `src directory`:
* sed -i 's/Audacity: A Digital Audio Editor/Tenacity/g' *.h
* sed -i 's/Audacity: A Digital Audio Editor/Tenacity/g' *.cpp

Signed-off-by: Panagiotis Vasilopoulos <hello@alwayslivid.com>
2021-07-13 09:30:42 +00:00

47 lines
877 B
C++

/**********************************************************************
Tenacity
PlatformCompatibility.cpp
Markus Meyer
*******************************************************************//*!
\class PlatformCompatibility
\brief Filename Compatibility utilities.
\see FileNames
*//*******************************************************************/
#include "PlatformCompatibility.h"
#include <wx/filefn.h>
#include <wx/filename.h>
#include <wx/stdpaths.h>
#include <wx/app.h>
FilePath PlatformCompatibility::GetLongFileName(const FilePath &shortFileName)
{
wxFileName fn(shortFileName);
return fn.GetLongPath();
}
const FilePath &PlatformCompatibility::GetExecutablePath()
{
static bool found = false;
static FilePath path;
if (!found) {
path = wxStandardPaths::Get().GetExecutablePath();
found = true;
}
return path;
}