MCPcopy Create free account
hub / github.com/NVIDIA-RTX/RTXPT / GetLocalPath

Function GetLocalPath

Rtxpt/SampleCommon/SampleCommon.cpp:402–415  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

400}
401
402std::filesystem::path GetLocalPath(std::string subfolder)
403{
404 static std::filesystem::path oneChoice;
405 // if( oneChoice.empty() )
406 {
407 std::filesystem::path candidateA = donut::app::GetDirectoryWithExecutable() / subfolder;
408 std::filesystem::path candidateB = donut::app::GetDirectoryWithExecutable().parent_path() / subfolder;
409 if (std::filesystem::exists(candidateA))
410 oneChoice = candidateA;
411 else
412 oneChoice = candidateB;
413 }
414 return oneChoice;
415}
416
417std::string StringLoadFromFile( const std::filesystem::path & filePath )
418{

Callers 9

SampleMethod · 0.85
InitMethod · 0.85
SetCurrentSceneMethod · 0.85
SceneLoadedMethod · 0.85
RenderMethod · 0.85
DenoisedScreenshotMethod · 0.85
SampleUIMethod · 0.85
SampleProceduralSkyMethod · 0.85
PreUpdateMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected