1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-01-03 17:37:18 +00:00
OpenMW/components/files/windowspath.hpp

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

80 lines
1.9 KiB
C++
Raw Normal View History

#ifndef COMPONENTS_FILES_WINDOWSPATH_HPP
#define COMPONENTS_FILES_WINDOWSPATH_HPP
#if defined(_WIN32) || defined(__WINDOWS__)
#include <filesystem>
/**
* \namespace Files
*/
namespace Files
{
/**
* \struct WindowsPath
*/
struct WindowsPath
2022-09-22 18:26:05 +00:00
{
/**
* \brief WindowsPath constructor.
2022-09-22 18:26:05 +00:00
*
* \param [in] application_name - The name of the application.
2022-09-22 18:26:05 +00:00
*/
WindowsPath(const std::string& application_name);
/**
* \brief Returns user path i.e.:
* "X:\Documents And Settings\<User name>\My Documents\My Games\"
*
* \return std::filesystem::path
*/
std::filesystem::path getUserConfigPath() const;
2013-12-26 00:24:43 +00:00
std::filesystem::path getUserDataPath() const;
/**
* \brief Returns "X:\Program Files\"
*
* \return std::filesystem::path
*/
std::filesystem::path getGlobalConfigPath() const;
/**
* \brief Return local path which is a location where
* an application was started
*
* \return std::filesystem::path
*/
std::filesystem::path getLocalPath() const;
2012-09-02 17:40:26 +00:00
/**
* \brief
*
* \return std::filesystem::path
2012-09-02 17:40:26 +00:00
*/
std::filesystem::path getCachePath() const;
2012-09-02 17:40:26 +00:00
/**
* \brief Return same path like getGlobalPath
*
* \return std::filesystem::path
*/
std::filesystem::path getGlobalDataPath() const;
/**
* \brief Gets the path of the installed Morrowind version if there is one.
*
* \return std::filesystem::path
*/
std::filesystem::path getInstallPath() const;
std::string mName;
};
} /* namespace Files */
#endif /* defined(_WIN32) || defined(__WINDOWS__) */
#endif /* COMPONENTS_FILES_WINDOWSPATH_HPP */