MCPcopy Create free account
hub / github.com/FlaxEngine/FlaxEngine / IsAsset

Function IsAsset

Source/Engine/Platform/Android/AndroidFileSystem.cpp:32–44  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

30 }
31
32 bool IsAsset(const StringView& path, const char* pathAnsi)
33 {
34 if (path.StartsWith(StringView(Globals::ProjectFolder), StringSearchCase::CaseSensitive))
35 {
36 AAsset* asset = AAssetManager_open(GetAssetManager(), pathAnsi + Globals::ProjectFolder.Length() + 1, AASSET_MODE_UNKNOWN);
37 if (asset)
38 {
39 AAsset_close(asset);
40 return true;
41 }
42 }
43 return false;
44 }
45
46 bool DeleteUnixPathTree(const char* path)
47 {

Callers 2

FileExistsMethod · 0.85
IsReadOnlyMethod · 0.85

Calls 3

StringViewClass · 0.50
StartsWithMethod · 0.45
LengthMethod · 0.45

Tested by

no test coverage detected