MCPcopy Create free account
hub / github.com/defold/defold / ResolveMountFileName

Function ResolveMountFileName

engine/dlib/src/dlib/sys.cpp:197–212  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

195 }
196
197 Result ResolveMountFileName(char* buffer, size_t buffer_size, const char* path)
198 {
199 dmSnPrintf(buffer, buffer_size, "%s", path);
200 if (dmSys::ResourceExists(buffer))
201 return RESULT_OK;
202
203 char host_path[DMPATH_MAX_PATH];
204 dmSys::GetHostFileName(host_path, sizeof(host_path), path);
205 if (dmSys::ResourceExists(host_path))
206 {
207 dmStrlCpy(buffer, host_path, buffer_size);
208 return RESULT_OK;
209 }
210
211 return RESULT_NOENT;
212 }
213
214 void GetEngineInfo(EngineInfo* info)
215 {

Callers 4

LoadManifestFunction · 0.85
MountArchiveFunction · 0.85
ResolveFilePathFunction · 0.85
MountFunction · 0.85

Calls 4

dmSnPrintfFunction · 0.85
GetHostFileNameFunction · 0.85
dmStrlCpyFunction · 0.85
ResourceExistsFunction · 0.70

Tested by

no test coverage detected