MCPcopy Create free account
hub / github.com/PCSX2/pcsx2 / SaveYAMLToFile

Function SaveYAMLToFile

pcsx2/SIO/Memcard/MemoryCardFolder.cpp:57–63  ·  view source on GitHub ↗

A helper function to write a YAML file

Source from the content-addressed store, hash-verified

55
56/// A helper function to write a YAML file
57static void SaveYAMLToFile(const char* filename, const ryml::NodeRef& node)
58{
59 auto file = FileSystem::OpenCFile(filename, "w");
60 ryml::emit_yaml(node, file);
61 std::fflush(file);
62 std::fclose(file);
63}
64
65static auto last = std::chrono::time_point<std::chrono::system_clock>();
66

Callers 3

FlushFileEntriesMethod · 0.85
DeleteFromIndexMethod · 0.85
WriteIndexMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected