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

Function ResourceExists

engine/dlib/src/dlib/sys_android.cpp:387–400  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

385 }
386
387 bool ResourceExists(const char* path)
388 {
389 AAssetManager* am = GetAndroidAssetManager();
390 if (am)
391 {
392 AAsset* asset = AAssetManager_open(am, path, AASSET_MODE_RANDOM);
393 if (asset)
394 {
395 AAsset_close(asset);
396 return true;
397 }
398 }
399 return dmSysPosix::ResourceExists(path);
400 }
401
402 Result ResourceSize(const char* path, uint32_t* resource_size)
403 {

Callers

nothing calls this directly

Calls 1

GetAndroidAssetManagerFunction · 0.70

Tested by

no test coverage detected