23 explicit Filename(std::string filename);
26 const std::string&
getOriginal()
const {
return originalFilename; }
27 const std::string&
getResolved()
const {
return resolvedFilename; }
47 resolvedFilename = resolved;
52 return resolvedFilename == other.resolvedFilename;
55 return !(*
this == other);
58 template<
typename Archive>
59 void serialize(Archive& ar,
unsigned version);
64 std::string originalFilename;
65 std::string resolvedFilename;
bool operator==(const Filename &other) const
void serialize(Archive &ar, unsigned version)
const std::string & getOriginal() const
std::unique_ptr< Context > context
void updateAfterLoadState()
After a loadstate we prefer to use the exact same file as before savestate.
bool operator!=(const Filename &other) const
This class represents a filename.
Thanks to enen for testing this on a real cartridge:
void setResolved(const std::string &resolved)
Change the resolved part of this filename E.g.
const std::string & getResolved() const
bool empty() const
Convenience method to test for empty filename.