src/main/nacl/SDL_nacl_main.c
changeset 8877 0d691f3734ac
parent 8851 a7cfe554d337
child 8880 ee5117b56b93
equal deleted inserted replaced
8876:60edb019f0fe 8877:0d691f3734ac
    22 
    22 
    23 #if SDL_VIDEO_DRIVER_NACL
    23 #if SDL_VIDEO_DRIVER_NACL
    24 
    24 
    25 /* Include the SDL main definition header */
    25 /* Include the SDL main definition header */
    26 #include "SDL_main.h"
    26 #include "SDL_main.h"
    27 #include "SDL_system.h"
       
    28 
    27 
    29 #include "ppapi_simple/ps_main.h"
    28 #include "ppapi_simple/ps_main.h"
    30 #include "ppapi_simple/ps_event.h"
    29 #include "ppapi_simple/ps_event.h"
    31 #include "ppapi_simple/ps_interface.h"
    30 #include "ppapi_simple/ps_interface.h"
       
    31 #include "nacl_io/nacl_io.h"
    32 
    32 
    33 extern void NACL_SetScreenResolution(int width, int height, Uint32 format);
    33 extern void NACL_SetScreenResolution(int width, int height, Uint32 format);
    34 
    34 
    35 int
    35 int
    36 nacl_main(int argc, char *argv[])
    36 nacl_main(int argc, char *argv[])
    67     
    67     
    68     /* Do a default httpfs mount on /, 
    68     /* Do a default httpfs mount on /, 
    69      * apps can override this by unmounting / 
    69      * apps can override this by unmounting / 
    70      * and remounting with the desired configuration
    70      * and remounting with the desired configuration
    71      */
    71      */
    72     SDL_NaClUmount("/");
    72     nacl_io_init_ppapi(PSGetInstanceId(), PSGetInterface);
    73     SDL_NaClMount(
    73     
       
    74     umount("/");
       
    75     mount(
    74         "",  /* source */
    76         "",  /* source */
    75         "/",  /* target */
    77         "/",  /* target */
    76         "httpfs",  /* filesystemtype */
    78         "httpfs",  /* filesystemtype */
    77         0,  /* mountflags */
    79         0,  /* mountflags */
    78         "");  /* data specific to the html5fs type */
    80         "");  /* data specific to the html5fs type */