Definition PortableMode.cpp:16
std::filesystem::path DataDir()
<executable dir>/data in portable mode, empty otherwise. Not created here.
Definition PortableMode.cpp:76
void OverrideExecutableDirForTesting(const std::filesystem::path &dir)
Tests: pretend the executable lives in dir. Empty path restores the real one.
Definition PortableMode.cpp:81
constexpr const char * kDataDirName
Definition PortableMode.hpp:14
std::filesystem::path ExecutableDir()
Directory containing the running executable (empty if it cannot be found).
Definition PortableMode.cpp:53
bool IsPortable()
True when the marker file exists next to the executable.
Definition PortableMode.cpp:61
constexpr const char * kMarkerFile
Definition PortableMode.hpp:13