README-nacl.txt
changeset 8877 0d691f3734ac
parent 8873 77ffe680093f
     1.1 --- a/README-nacl.txt	Thu Jun 19 00:40:09 2014 -0400
     1.2 +++ b/README-nacl.txt	Fri Jun 20 10:59:51 2014 -0300
     1.3 @@ -60,18 +60,17 @@
     1.4  RWops and nacl_io
     1.5  ================================================================================
     1.6  
     1.7 -SDL_RWops work transparently with nacl_io. Two functions are provided to control
     1.8 -mount points:
     1.9 +SDL_RWops work transparently with nacl_io. Two functions control the mount points:
    1.10      
    1.11 -    int SDL_NaClMount(const char* source, const char* target, 
    1.12 +    int mount(const char* source, const char* target, 
    1.13                        const char* filesystemtype, 
    1.14                        unsigned long mountflags, const void *data);
    1.15 -    int SDL_NaClUmount(const char *target);
    1.16 +    int umount(const char *target);
    1.17      
    1.18      For convenience, SDL will by default mount an httpfs tree at / before calling 
    1.19  the app's main function. Such setting can be overridden by calling:
    1.20      
    1.21 -    SDL_NaClUmount("/");
    1.22 +    umount("/");
    1.23  
    1.24  And then mounting a different filesystem at /
    1.25  
    1.26 @@ -85,6 +84,17 @@
    1.27  For more information on how nacl_io and mount points work, see:
    1.28      
    1.29      https://developer.chrome.com/native-client/devguide/coding/nacl_io
    1.30 +    https://src.chromium.org/chrome/trunk/src/native_client_sdk/src/libraries/nacl_io/nacl_io.h
    1.31 +
    1.32 +To be able to save into the directory "/save/" (like backup of game) :
    1.33 +
    1.34 +    mount("", "/save", "html5fs", 0, "type=PERSISTENT");
    1.35 +
    1.36 +And add to manifest.json :
    1.37 +
    1.38 +  "permissions": [
    1.39 +     "unlimitedStorage"
    1.40 +  ]
    1.41  
    1.42  ================================================================================
    1.43  TODO - Known Issues