MCPcopy Create free account
hub / github.com/deathkiller/jazz2-native / TryOpenFile

Method TryOpenFile

Sources/Shared/IO/AndroidAssetStream.cpp:228–237  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

226 }
227
228 bool AndroidAssetStream::TryOpenFile(const Containers::StringView path)
229 {
230 AAsset* asset = AAssetManager_open(_nativeActivity->assetManager, path.data(), AASSET_MODE_UNKNOWN);
231 if (asset != nullptr) {
232 AAsset_close(asset);
233 return true;
234 }
235
236 return false;
237 }
238
239 bool AndroidAssetStream::TryOpenDirectory(const Containers::StringView path)
240 {

Callers

nothing calls this directly

Calls 1

dataMethod · 0.45

Tested by

no test coverage detected