MCPcopy Create free account
hub / github.com/PCSX2/pcsx2 / GetPortableModePath

Method GetPortableModePath

pcsx2/Pcsx2Config.cpp:2198–2204  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2196}
2197
2198std::string EmuFolders::GetPortableModePath()
2199{
2200 const auto portable_txt_path = Path::Combine(AppRoot, "portable.txt");
2201 const auto portable_path = FileSystem::ReadFileToString(portable_txt_path.c_str()).value_or("");
2202 const auto trimmed_path = StringUtil::StripWhitespace(portable_path);
2203 return std::string(trimmed_path);
2204}
2205
2206bool EmuFolders::SetDataDirectory(Error* error)
2207{

Callers

nothing calls this directly

Calls 4

CombineFunction · 0.85
StripWhitespaceFunction · 0.85
stringClass · 0.50
c_strMethod · 0.45

Tested by

no test coverage detected