MCPcopy Create free account
hub / github.com/OpenRCT2/OpenRCT2 / GetDefaultPath

Function GetDefaultPath

src/openrct2/config/Config.cpp:886–890  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

884 }
885
886 u8string GetDefaultPath()
887 {
888 auto& env = GetContext()->GetPlatformEnvironment();
889 return Path::Combine(env.GetDirectoryPath(DirBase::user), u8"config.ini");
890 }
891
892 bool SaveToPath(u8string_view path)
893 {

Callers 2

GetOrPromptRCT2PathMethod · 0.85
SaveFunction · 0.85

Calls 3

GetContextFunction · 0.85
GetDirectoryPathMethod · 0.80
CombineFunction · 0.50

Tested by

no test coverage detected