| 108 | } |
| 109 | |
| 110 | fs::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 | |
| 124 | DataSourceRef PlatformAndroid::loadResource( const fs::path &resourcePath ) |
| 125 | { |
nothing calls this directly
no test coverage detected