1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-01-09 03:39:14 +00:00
OpenMW/components/files/androidpath.hpp

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

54 lines
1.3 KiB
C++
Raw Normal View History

2014-09-05 22:02:39 +00:00
#ifndef COMPONENTS_FILES_ANDROIDPATH_H
#define COMPONENTS_FILES_ANDROIDPATH_H
2014-08-05 20:46:21 +00:00
#if defined(__ANDROID__)
#include <filesystem>
2014-08-05 20:46:21 +00:00
/**
* \namespace Files
*/
2014-12-02 21:03:27 +00:00
2014-08-05 20:46:21 +00:00
namespace Files
{
2014-12-02 21:11:50 +00:00
2014-08-05 20:46:21 +00:00
struct AndroidPath
{
AndroidPath(const std::string& application_name);
2022-09-22 18:26:05 +00:00
2014-08-05 20:46:21 +00:00
/**
* \brief Return path to the user directory.
*/
std::filesystem::path getUserConfigPath() const;
2022-09-22 18:26:05 +00:00
std::filesystem::path getUserDataPath() const;
2022-09-22 18:26:05 +00:00
2014-08-05 20:46:21 +00:00
/**
* \brief Return path to the global (system) directory where config files can be placed.
*/
std::filesystem::path getGlobalConfigPath() const;
2022-09-22 18:26:05 +00:00
2014-08-05 20:46:21 +00:00
/**
* \brief Return path to the runtime configuration directory which is the
* place where an application was started.
*/
std::filesystem::path getLocalPath() const;
2022-09-22 18:26:05 +00:00
2014-08-05 20:46:21 +00:00
/**
* \brief Return path to the global (system) directory where game files can be placed.
*/
std::filesystem::path getGlobalDataPath() const;
2022-09-22 18:26:05 +00:00
2014-08-05 20:46:21 +00:00
/**
* \brief
*/
std::filesystem::path getCachePath() const;
2022-09-22 18:26:05 +00:00
std::filesystem::path getInstallPath() const;
2014-08-05 20:46:21 +00:00
};
} /* namespace Files */
2014-09-05 22:02:39 +00:00
#endif /* defined(__Android__) */
2014-08-05 20:46:21 +00:00
2014-09-05 22:02:39 +00:00
#endif /* COMPONENTS_FILES_ANDROIDPATH_H */