mirror of
https://github.com/cookiengineer/audacity
synced 2025-06-16 08:09:32 +02:00
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>
47 lines
877 B
C++
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;
|
|
}
|
|
|