MCPcopy Create free account
hub / github.com/crosire/reshade / append_file

Method append_file

source/effect_preprocessor.cpp:138–145  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

136}
137
138bool reshadefx::preprocessor::append_file(const std::filesystem::path &path)
139{
140 std::string source_code;
141 if (!read_file(path, source_code))
142 return false;
143
144 return append_string(std::move(source_code), path);
145}
146bool reshadefx::preprocessor::append_string(std::string source_code, const std::filesystem::path &path)
147{
148 // Enforce all input strings to end with a line feed

Callers 2

mainFunction · 0.80
load_effectMethod · 0.80

Calls 1

read_fileFunction · 0.85

Tested by

no test coverage detected