1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-01-06 00:55:50 +00:00
OpenMW/components/files/macospath.hpp

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

69 lines
1.6 KiB
C++
Raw Normal View History

#ifndef COMPONENTS_FILES_MACOSPATH_H
#define COMPONENTS_FILES_MACOSPATH_H
#if defined(macintosh) || defined(Macintosh) || defined(__APPLE__) || defined(__MACH__)
#include <filesystem>
/**
* \namespace Files
*/
namespace Files
{
/**
* \struct MacOsPath
*/
struct MacOsPath
2022-09-22 18:26:05 +00:00
{
MacOsPath(const std::string& application_name);
2022-09-22 18:26:05 +00:00
/**
* \brief Return path to the local directory.
2022-09-22 18:26:05 +00:00
*
* \return std::filesystem::path
2022-09-22 18:26:05 +00:00
*/
std::filesystem::path getUserConfigPath() const;
2013-12-26 00:24:43 +00:00
std::filesystem::path getUserDataPath() const;
/**
* \brief Return path to the global (system) directory.
*
* \return std::filesystem::path
*/
std::filesystem::path getGlobalConfigPath() const;
2012-09-02 17:40:26 +00:00
/**
* \brief Return path to the runtime directory which is the
* place where an application was started.
2022-09-22 18:26:05 +00:00
*
* \return std::filesystem::path
2012-09-02 17:40:26 +00:00
*/
std::filesystem::path getLocalPath() const;
2012-09-02 17:40:26 +00:00
/**
* \brief
*
* \return std::filesystem::path
2022-09-22 18:26:05 +00:00
*/
std::filesystem::path getCachePath() const;
2022-09-22 18:26:05 +00:00
/**
* \brief
*
* \return std::filesystem::path
*/
std::filesystem::path getGlobalDataPath() const;
std::filesystem::path getInstallPath() const;
std::string mName;
};
} /* namespace Files */
#endif /* defined(macintosh) || defined(Macintosh) || defined(__APPLE__) || defined(__MACH__) */
#endif /* COMPONENTS_FILES_MACOSPATH_H */