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:
parent
4b93349db5
commit
8a4e28f81d
2 changed files with 24 additions and 4 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue