MCPcopy Create free account
hub / github.com/cinder/Cinder / AssetFileSystem_exists

Function AssetFileSystem_exists

src/cinder/app/android/AssetFileSystem.cpp:36–48  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

34}
35
36bool AssetFileSystem_exists( ci::fs::path path )
37{
38 bool result = false;
39 if( nullptr != EventManagerAndroid::instance() ) {
40 AAssetManager *assetMan = GetNativeAssetManager();
41 AAsset *asset = AAssetManager_open( assetMan, path.string().c_str(), AASSET_MODE_UNKNOWN );
42 if( nullptr != asset ) {
43 result = true;
44 AAsset_close( asset );
45 }
46 }
47 return result;
48}
49
50AssetFileSystem_FILE * AssetFileSystem_fopen( const char * filename, const char * mode )
51{

Callers 2

existsFunction · 0.85
getAssetPathMethod · 0.85

Calls 3

GetNativeAssetManagerFunction · 0.85
c_strMethod · 0.45
stringMethod · 0.45

Tested by

no test coverage detected