src/main/nacl/SDL_nacl_main.c
changeset 8877 0d691f3734ac
parent 8851 a7cfe554d337
child 8880 ee5117b56b93
--- a/src/main/nacl/SDL_nacl_main.c	Thu Jun 19 00:40:09 2014 -0400
+++ b/src/main/nacl/SDL_nacl_main.c	Fri Jun 20 10:59:51 2014 -0300
@@ -24,11 +24,11 @@
 
 /* Include the SDL main definition header */
 #include "SDL_main.h"
-#include "SDL_system.h"
 
 #include "ppapi_simple/ps_main.h"
 #include "ppapi_simple/ps_event.h"
 #include "ppapi_simple/ps_interface.h"
+#include "nacl_io/nacl_io.h"
 
 extern void NACL_SetScreenResolution(int width, int height, Uint32 format);
 
@@ -69,8 +69,10 @@
      * apps can override this by unmounting / 
      * and remounting with the desired configuration
      */
-    SDL_NaClUmount("/");
-    SDL_NaClMount(
+    nacl_io_init_ppapi(PSGetInstanceId(), PSGetInterface);
+    
+    umount("/");
+    mount(
         "",  /* source */
         "/",  /* target */
         "httpfs",  /* filesystemtype */