filesystem: android: request buffer for Android asset LoadFile implementation

Might be better than asking for random access and then only reading forward.
This commit is contained in:
Alibek Omarov 2025-01-21 19:50:11 +03:00
parent f29c588e0f
commit b7c025b167

View file

@ -242,7 +242,7 @@ static byte *FS_LoadAndroidAssetsFile( searchpath_t *search, const char *path, i
if( filesize ) *filesize = 0; if( filesize ) *filesize = 0;
asset = AAssetManager_open( search->assets->asset_manager, path, AASSET_MODE_RANDOM ); asset = AAssetManager_open( search->assets->asset_manager, path, AASSET_MODE_BUFFER );
if( !asset ) if( !asset )
return NULL; return NULL;