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

Function FixAndroidResourcePath

engine/dlib/src/dlib/sys_android.cpp:363–375  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

361 }
362
363 static const char* FixAndroidResourcePath(const char* path)
364 {
365 // Assets on Android are loaded with a relative path from assets.
366 if (strncmp(path, "./", 2) == 0)
367 {
368 path += 2;
369 }
370 while (*path == '/')
371 {
372 ++path;
373 }
374 return path;
375 }
376
377 static AAssetManager* GetAndroidAssetManager()
378 {

Callers 3

ResourceSizeFunction · 0.85
LoadResourceFunction · 0.85
LoadResourcePartialFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected