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

Method getAssetPath

src/cinder/app/android/PlatformAndroid.cpp:110–122  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

108}
109
110fs::path PlatformAndroid::getAssetPath( const fs::path &relativePath ) const
111{
112 const auto &assetDirs = getAssetDirectories();
113
114 for( const auto &directory : assetDirs ) {
115 auto fullPath = directory / relativePath;
116 if( android::AssetFileSystem_exists( fullPath ) ) {
117 return fullPath;
118 }
119 }
120
121 return fs::path(); // empty implies failure
122}
123
124DataSourceRef PlatformAndroid::loadResource( const fs::path &resourcePath )
125{

Callers

nothing calls this directly

Calls 1

AssetFileSystem_existsFunction · 0.85

Tested by

no test coverage detected