2
0
mirror of https://github.com/AxioDL/metaforce.git synced 2025-12-20 06:25:24 +00:00

FileStoreManager: Use SDL_GetPrefPath, add org argument

Use SDL_GetPrefPath by default, if we fail to get a valid path *then* we use the platform specific logic as a fallback
This commit is contained in:
2022-02-27 17:35:13 -08:00
parent 399b44baf0
commit b305454199
4 changed files with 41 additions and 32 deletions

View File

@@ -7,11 +7,13 @@ namespace metaforce {
* @brief Per-platform file store resolution
*/
class FileStoreManager {
std::string m_org;
std::string m_domain;
std::string m_storeRoot;
public:
FileStoreManager(std::string_view domain);
FileStoreManager(std::string_view org, std::string_view domain);
std::string_view getOrg() const { return m_org; }
std::string_view getDomain() const { return m_domain; }
/**
* @brief Returns the full path to the file store, including domain