openMSX
|
#include <FileContext.hh>
Public Member Functions | |
FileContext ()=default | |
FileContext (std::vector< std::string > &&paths, std::vector< std::string > &&savePaths) | |
std::string | resolve (std::string_view filename) const |
std::string | resolveCreate (std::string_view filename) const |
std::span< const std::string > | getPaths () const |
bool | isUserContext () const |
template<typename Archive > | |
void | serialize (Archive &ar, unsigned version) |
Definition at line 11 of file FileContext.hh.
|
default |
openmsx::FileContext::FileContext | ( | std::vector< std::string > && | paths, |
std::vector< std::string > && | savePaths | ||
) |
Definition at line 74 of file FileContext.cc.
std::span< const string > openmsx::FileContext::getPaths | ( | ) | const |
Definition at line 108 of file FileContext.cc.
Referenced by openmsx::Reactor::getHwConfigs(), resolve(), and openmsx::RomDatabase::RomDatabase().
bool openmsx::FileContext::isUserContext | ( | ) | const |
Definition at line 116 of file FileContext.cc.
References contains(), and openmsx::USER_DIRS.
string openmsx::FileContext::resolve | ( | std::string_view | filename | ) | const |
Definition at line 79 of file FileContext.cc.
References getPaths(), and openmsx::FileOperations::needsTildeExpansion().
Referenced by openmsx::HardwareConfig::createRomConfig(), openmsx::CDXCommand::execute(), openmsx::MsxChar2Unicode::MsxChar2Unicode(), openmsx::MSXSCCPlusCart::MSXSCCPlusCart(), openmsx::Reactor::runStartupScripts(), and openmsx::UnicodeKeymap::UnicodeKeymap().
string openmsx::FileContext::resolveCreate | ( | std::string_view | filename | ) | const |
Definition at line 86 of file FileContext.cc.
References openmsx::FileOperations::join(), openmsx::FileOperations::mkdirp(), and openmsx::FileOperations::needsTildeExpansion().
Referenced by openmsx::FirmwareSwitch::FirmwareSwitch(), openmsx::HD::HD(), and openmsx::FirmwareSwitch::~FirmwareSwitch().
void openmsx::FileContext::serialize | ( | Archive & | ar, |
unsigned | version | ||
) |
Definition at line 122 of file FileContext.cc.