#include <akgltest.h>

akerr_ErrorContext AKERR_NOIGNORE *akgltest_load_assets()
{
    PREPARE_ERROR(e);
    for ( int i = 0; i < numsprites ; i++) {
	strcpy((char *)&dirnamebuf, spritepaths[i]);
	SDL_Log("Loading sprite %s (%d of %d)....", (char *)&dirnamebuf, i, numsprites);
	PASS(e, akgl_sprite_load_json((char *)&dirnamebuf));
    }
    for ( int i = 0; i < numchars ; i++ ) {
	strcpy((char *)&dirnamebuf, characterpaths[i]);
	SDL_Log("Loading character %s (%d of %d)....", (char *)&dirnamebuf, i, numchars);
	PASS(e, akgl_character_load_json((char *)&dirnamebuf));
    }
    SUCCEED_RETURN(e);
}

