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

Function OpenFromPath

src/openrct2/config/Config.cpp:871–884  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

869 }
870
871 bool OpenFromPath(u8string_view path)
872 {
873 if (!File::Exists(path))
874 {
875 return false;
876 }
877
878 auto result = ReadFile(path);
879 if (result)
880 {
881 CurrencyLoadCustomCurrencyConfig();
882 }
883 return result;
884 }
885
886 u8string GetDefaultPath()
887 {

Callers 2

HandleCommandSetRCT2Function · 0.85

Calls 3

ExistsFunction · 0.85
ReadFileFunction · 0.85

Tested by

no test coverage detected