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

Function ReadPlugin

src/openrct2/config/Config.cpp:635–643  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

633 }
634
635 static void ReadPlugin(IIniReader* reader)
636 {
637 if (reader->ReadSection("plugin"))
638 {
639 auto model = &_config.plugin;
640 model->enableHotReloading = reader->GetBoolean("enable_hot_reloading", false);
641 model->allowedHosts = reader->GetString("allowed_hosts", "");
642 }
643 }
644
645 static void WritePlugin(IIniWriter* writer)
646 {

Callers 2

SetDefaultsFunction · 0.85
ReadFileFunction · 0.85

Calls 3

ReadSectionMethod · 0.45
GetBooleanMethod · 0.45
GetStringMethod · 0.45

Tested by

no test coverage detected