MCPcopy Create free account
hub / github.com/dfranx/SHADERed / SaveProjectFile

Method SaveProjectFile

src/SHADERed/Objects/ProjectParser.cpp:1011–1016  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1009 return m_models[m_models.size() - 1].second;
1010 }
1011 void ProjectParser::SaveProjectFile(const std::string& file, const std::string& data)
1012 {
1013 std::ofstream out(GetProjectPath(file));
1014 out << data;
1015 out.close();
1016 }
1017 std::string ProjectParser::GetRelativePath(const std::string& to)
1018 {
1019 std::filesystem::path fFrom(m_projectPath);

Callers 1

m_saveMethod · 0.80

Calls 1

closeMethod · 0.45

Tested by

no test coverage detected