MCPcopy Create free account
hub / github.com/Overload-Technologies/Overload / Rewrite

Method Rewrite

Sources/OvTools/src/OvTools/Filesystem/IniFile.cpp:112–126  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

110}
111
112void OvTools::Filesystem::IniFile::Rewrite() const
113{
114 std::ofstream outfile;
115 outfile.open(m_filePath, std::ios_base::trunc);
116
117 if (outfile.is_open())
118 {
119 for (const auto& [key, value] : m_data)
120 {
121 outfile << key << "=" << value << std::endl;
122 }
123 }
124
125 outfile.close();
126}

Callers 4

ProjectSettingsMethod · 0.80
ApplyMethod · 0.80
SaveMethod · 0.80
ContextMethod · 0.80

Calls 3

openMethod · 0.45
is_openMethod · 0.45
closeMethod · 0.45

Tested by

no test coverage detected