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

Function ReadFile

src/openrct2/config/Config.cpp:673–692  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

671 }
672
673 static bool ReadFile(u8string_view path)
674 {
675 try
676 {
677 auto fs = FileStream(path, FileMode::open);
678 auto reader = CreateIniReader(&fs);
679 ReadGeneral(reader.get());
680 ReadInterface(reader.get());
681 ReadSound(reader.get());
682 ReadNetwork(reader.get());
683 ReadNotifications(reader.get());
684 ReadFont(reader.get());
685 ReadPlugin(reader.get());
686 return true;
687 }
688 catch (const std::exception&)
689 {
690 return false;
691 }
692 }
693
694 static bool WriteFile(u8string_view path)
695 {

Callers 2

OpenFromPathFunction · 0.85
SetPersonalityMethod · 0.85

Calls 10

FileStreamClass · 0.85
CreateIniReaderFunction · 0.85
ReadGeneralFunction · 0.85
ReadInterfaceFunction · 0.85
ReadSoundFunction · 0.85
ReadNetworkFunction · 0.85
ReadNotificationsFunction · 0.85
ReadFontFunction · 0.85
ReadPluginFunction · 0.85
getMethod · 0.65

Tested by

no test coverage detected