Support Android internal data storage

Useful to save small data files (configuration and so)
For bigger files, external data storage should be used (SDCard)
This commit is contained in:
Ray 2016-05-31 00:01:19 +02:00
parent 4b93349db5
commit 8a4e28f81d
2 changed files with 24 additions and 4 deletions

View file

@ -247,7 +247,7 @@ FILE *android_fopen(const char *fileName, const char *mode)
AAsset *asset = AAssetManager_open(assetManager, fileName, 0);
if(!asset) return NULL;
if (!asset) return NULL;
return funopen(asset, android_read, android_write, android_seek, android_close);
}