Adds missing Makefile for NACL test and a couple of smaller fixes

This commit is contained in:
Gabriel Jacobo 2014-06-06 18:33:17 -03:00
parent 1e352d7929
commit 93aabd3224
3 changed files with 73 additions and 0 deletions

View file

@ -133,6 +133,16 @@ main(int argc, char **argv)
}
SDL_Log("Using audio driver: %s\n", SDL_GetCurrentAudioDriver());
#if __NACL__
SDL_RWUmount("/");
SDL_RWMount(
"", /* source */
"/", /* target */
"httpfs", /* filesystemtype */
0, /* mountflags */
""); /* data specific to the html5fs type */
#endif
devcount = SDL_GetNumAudioDevices(0);
if (devcount < 1) {