MCPcopy Create free account
hub / github.com/WolfireGames/overgrowth / FindImagePath

Function FindImagePath

Source/Internal/filesystem.cpp:126–138  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

124}
125
126Path FindImagePath(const char* path, PathFlagsBitfield flags, bool is_necessary) {
127 Path p;
128
129 strcpy(p.original, path);
130
131 if (FindImagePath(p.original, p.resolved, kPathSize, flags, is_necessary, &p.source) == 0) {
132 p.valid = true;
133 } else {
134 p.valid = false;
135 }
136
137 return p;
138}
139
140Path FindFilePath(const string& path, PathFlagsBitfield flags, bool is_necessary) {
141 return FindFilePath(path.c_str(), flags, is_necessary);

Callers 9

ReloadMethod · 0.85
LoadResourcesMethod · 0.85
ReloadInternalMethod · 0.85
loadTextureMethod · 0.85
loadArraySliceMethod · 0.85
ReloadAsCompressedMethod · 0.85
CalcDetailTexturesMethod · 0.85
LoadMethod · 0.85
LoadMethod · 0.85

Calls 6

FindFilePathsFunction · 0.85
GetDateModifiedInt64Function · 0.85
FormatStringFunction · 0.85
ChecksumFunction · 0.85
my_fopenFunction · 0.85
c_strMethod · 0.45

Tested by

no test coverage detected