MCPcopy Create free account
hub / github.com/crownengine/crown / temporary_path

Method temporary_path

src/resource/compile_options.cpp:243–255  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

241}
242
243void CompileOptions::temporary_path(DynamicString &abs, const char *suffix)
244{
245 TempAllocator1024 ta;
246 DynamicString str(ta);
247 DynamicString prefix(ta);
248 prefix.from_guid(guid::new_guid());
249
250 _output_filesystem.absolute_path(str, CROWN_TEMP_DIRECTORY);
251
252 path::join(abs, str.c_str(), prefix.c_str());
253 abs += '.';
254 abs += suffix;
255}
256
257DeleteResult CompileOptions::delete_file(const char *path)
258{

Callers 3

compileFunction · 0.80
ShaderCompilerMethod · 0.80
compileFunction · 0.80

Calls 5

new_guidFunction · 0.85
from_guidMethod · 0.80
joinFunction · 0.50
absolute_pathMethod · 0.45
c_strMethod · 0.45

Tested by

no test coverage detected