mirror of
https://github.com/AxioDL/metaforce.git
synced 2025-12-20 06:25:24 +00:00
Move CVar* into Metaforce to begin removal of hecl's Dataspec
This commit is contained in:
22
Runtime/ConsoleVariables/FileStoreManager.hpp
Normal file
22
Runtime/ConsoleVariables/FileStoreManager.hpp
Normal file
@@ -0,0 +1,22 @@
|
||||
#pragma once
|
||||
#include <string>
|
||||
#include <string_view>
|
||||
|
||||
namespace metaforce {
|
||||
/**
|
||||
* @brief Per-platform file store resolution
|
||||
*/
|
||||
class FileStoreManager {
|
||||
std::string m_domain;
|
||||
std::string m_storeRoot;
|
||||
|
||||
public:
|
||||
FileStoreManager(std::string_view domain);
|
||||
std::string_view getDomain() const { return m_domain; }
|
||||
/**
|
||||
* @brief Returns the full path to the file store, including domain
|
||||
* @return Full path to store e.g /home/foo/.hecl/bar
|
||||
*/
|
||||
std::string_view getStoreRoot() const { return m_storeRoot; }
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user