![]() |
|
Android: how to open an assets file? |
weeboe
Member #14,848
January 2013
|
Should be easy, but does not work: al_android_set_apk_file_interface(); ALLEGRO_FILE *f=al_fopen("myFile","rb"); int fsize=al_fsize(f); The result: f is not 0, but it shows no content either. The value of fsize = 0. What's wrong? PS PS2 ALLEGRO_FILE *ttf_file=al_fopen("/system/fonts/DroidSans.ttf","rb"); Same result: the file could be opened, but its size was zero. PS3 |
|