MCPcopy Create free account
hub / github.com/Norbyte/ositools / SaveFile

Method SaveFile

OsiLoader/dllmain.cpp:121–129  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

119 }
120
121 void SaveFile(std::wstring const & path, std::vector<uint8_t> const & body)
122 {
123 std::ofstream f(path, std::ios::binary | std::ios::out);
124 if (!f.good()) {
125 return;
126 }
127
128 f.write(reinterpret_cast<char const *>(body.data()), body.size());
129 }
130
131 void UpdatePaths()
132 {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected