istereo2

diff src/android/assman.c @ 24:9d53a4938ce8

port to android mostly complete, ads not done, and needs some polishing
author John Tsiombikas <nuclear@member.fsf.org>
date Sun, 04 Oct 2015 08:15:24 +0300
parents 7d795dade0bc
children
line diff
     1.1 --- a/src/android/assman.c	Sat Oct 03 06:10:30 2015 +0300
     1.2 +++ b/src/android/assman.c	Sun Oct 04 08:15:24 2015 +0300
     1.3 @@ -1,3 +1,4 @@
     1.4 +#include <assert.h>
     1.5  #include <fcntl.h>
     1.6  #include <android/asset_manager.h>
     1.7  #include "assman.h"
     1.8 @@ -37,6 +38,9 @@
     1.9  		prev = *mode++;
    1.10  	}
    1.11  
    1.12 +	assert(app);
    1.13 +	assert(app->activity);
    1.14 +	assert(app->activity->assetManager);
    1.15  	if(!(ass = AAssetManager_open(app->activity->assetManager, fname, flags))) {
    1.16  		return 0;
    1.17  	}