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

Method LoadProjectFile

src/SHADERed/Objects/ProjectParser.cpp:963–974  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

961 return "";
962 }
963 std::string ProjectParser::LoadProjectFile(const std::string& file)
964 {
965 std::ifstream in(GetProjectPath(file));
966 if (in.is_open()) {
967 in.seekg(0, std::ios::beg);
968
969 std::string content((std::istreambuf_iterator<char>(in)), (std::istreambuf_iterator<char>()));
970 in.close();
971 return content;
972 }
973 return "";
974 }
975 char* ProjectParser::LoadProjectFile(const std::string& file, size_t& fsize)
976 {
977 std::string actual = GetProjectPath(file);

Callers 10

RecompileMethod · 0.80
m_cacheMethod · 0.80
m_includeCheckMethod · 0.80
CompileToSPIRVMethod · 0.80
ExportMethod · 0.80
DuplicateMethod · 0.80
m_addShaderPassMethod · 0.80
m_addPluginItemMethod · 0.80
OpenPluginCodeMethod · 0.80

Calls 2

is_openMethod · 0.80
closeMethod · 0.45

Tested by

no test coverage detected