MCPcopy Create free account
hub / github.com/averne/Fizeau / write

Method write

common/src/config.cpp:216–226  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

214}
215
216void Config::write() {
217 auto str = this->make();
218
219 auto loc = Config::find_config();
220 FILE *fp = std::fopen(loc.data(), "w");
221 FZ_SCOPEGUARD([&fp] { std::fclose(fp); });
222 if (!fp)
223 return;
224
225 std::fwrite(str.c_str(), str.length(), 1, fp);
226}
227
228Result update(Config &config) {
229 if (auto rc = fizeauGetIsActive(&config.active); R_FAILED(rc))

Callers 3

mainFunction · 0.80
mainFunction · 0.80
~FizeauOverlayGuiMethod · 0.80

Calls 1

makeMethod · 0.95

Tested by

no test coverage detected