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

Function SetDefaults

src/openrct2/config/Config.cpp:653–671  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

651 }
652
653 bool SetDefaults()
654 {
655 try
656 {
657 auto reader = CreateDefaultIniReader();
658 ReadGeneral(reader.get());
659 ReadInterface(reader.get());
660 ReadSound(reader.get());
661 ReadNetwork(reader.get());
662 ReadNotifications(reader.get());
663 ReadFont(reader.get());
664 ReadPlugin(reader.get());
665 return true;
666 }
667 catch (const std::exception&)
668 {
669 return false;
670 }
671 }
672
673 static bool ReadFile(u8string_view path)
674 {

Callers 2

HandleCommandSetRCT2Function · 0.85

Calls 9

CreateDefaultIniReaderFunction · 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