MCPcopy Create free account
hub / github.com/HertzDevil/0CC-FamiTracker / LoadFromRegistry

Method LoadFromRegistry

Source/SettingsService.cpp:92–103  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

90
91private:
92 void LoadFromRegistry() override {
93 setting_type Value = GetDefaultSetting(); // // //
94 {
95 stOldSettingContext s;
96 if (m_pSectionSecond)
97 Value = GetRegValue(m_pSectionSecond, m_pEntrySecond, Value);
98 Value = GetRegValue(m_pSection, m_pEntry, Value);
99 }
100 if (m_pSectionSecond)
101 Value = GetRegValue(m_pSectionSecond, m_pEntrySecond, Value);
102 WriteSetting(GetRegValue(m_pSection, m_pEntry, Value));
103 }
104
105 void SaveToRegistry() override {
106 SetRegValue(m_pSection, m_pEntry, ReadSetting());

Callers 1

LoadSettingsMethod · 0.80

Calls 1

GetRegValueFunction · 0.85

Tested by

no test coverage detected