MCPcopy Create free account
hub / github.com/CalcProgrammer1/OpenRGB / SaveSettings

Method SaveSettings

SettingsManager.cpp:95–112  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

93}
94
95void SettingsManager::SaveSettings()
96{
97 std::ofstream settings_file(settings_filename, std::ios::out | std::ios::binary);
98
99 if(settings_file)
100 {
101 try
102 {
103 settings_file << settings_data.dump(4);
104 }
105 catch(const std::exception& e)
106 {
107 LOG_ERROR("[SettingsManager] Cannot write to file: %s", e.what());
108 }
109
110 settings_file.close();
111 }
112}

Callers 2

AddPluginMethod · 0.45

Calls 2

dumpMethod · 0.45
whatMethod · 0.45

Tested by

no test coverage detected