Initialize nacl_io, removes SDL_NaClMount/Umount

It's just easier to use nacl_io's mount/umount directly.
This commit is contained in:
Gabriel Jacobo
2014-06-20 10:59:51 -03:00
parent 199aff7bc2
commit 553cc07e9d
4 changed files with 21 additions and 26 deletions

View File

@@ -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 @@ nacl_main(int argc, char *argv[])
* 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 */