| 121 | |
| 122 | |
| 123 | DataSourceRef loadFile( const fs::path &path ) |
| 124 | { |
| 125 | #if defined( CINDER_ANDROID ) |
| 126 | if( ci::app::PlatformAndroid::isAssetPath( path ) ) { |
| 127 | DataSourceRef result = DataSourceAndroidAsset::create( path ); |
| 128 | return result; |
| 129 | } |
| 130 | else { |
| 131 | DataSourceRef result = DataSourcePath::create( path ); |
| 132 | return result; |
| 133 | } |
| 134 | #else |
| 135 | return DataSourcePath::create( path ); |
| 136 | #endif |
| 137 | } |
| 138 | |
| 139 | |
| 140 | ///////////////////////////////////////////////////////////////////////////// |