src/main/nacl/SDL_nacl_main.c
changeset 8877 0d691f3734ac
parent 8851 a7cfe554d337
child 8880 ee5117b56b93
     1.1 --- a/src/main/nacl/SDL_nacl_main.c	Thu Jun 19 00:40:09 2014 -0400
     1.2 +++ b/src/main/nacl/SDL_nacl_main.c	Fri Jun 20 10:59:51 2014 -0300
     1.3 @@ -24,11 +24,11 @@
     1.4  
     1.5  /* Include the SDL main definition header */
     1.6  #include "SDL_main.h"
     1.7 -#include "SDL_system.h"
     1.8  
     1.9  #include "ppapi_simple/ps_main.h"
    1.10  #include "ppapi_simple/ps_event.h"
    1.11  #include "ppapi_simple/ps_interface.h"
    1.12 +#include "nacl_io/nacl_io.h"
    1.13  
    1.14  extern void NACL_SetScreenResolution(int width, int height, Uint32 format);
    1.15  
    1.16 @@ -69,8 +69,10 @@
    1.17       * apps can override this by unmounting / 
    1.18       * and remounting with the desired configuration
    1.19       */
    1.20 -    SDL_NaClUmount("/");
    1.21 -    SDL_NaClMount(
    1.22 +    nacl_io_init_ppapi(PSGetInstanceId(), PSGetInterface);
    1.23 +    
    1.24 +    umount("/");
    1.25 +    mount(
    1.26          "",  /* source */
    1.27          "/",  /* target */
    1.28          "httpfs",  /* filesystemtype */