Fix file name typo, thanks Sam Clegg!
authorGabriel Jacobo <gabomdq@gmail.com>
Wed, 18 Jun 2014 10:04:21 -0300
changeset 8875c65a4cfdd8b2
parent 8874 48d4f2d74d67
child 8876 60edb019f0fe
Fix file name typo, thanks Sam Clegg!
src/filesystem/nacl/SDL_sysfilesystem.c
src/filesystem/nacl/SDL_sysfilesytem.c
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/src/filesystem/nacl/SDL_sysfilesystem.c	Wed Jun 18 10:04:21 2014 -0300
     1.3 @@ -0,0 +1,59 @@
     1.4 +/*
     1.5 +  Simple DirectMedia Layer
     1.6 +  Copyright (C) 1997-2014 Sam Lantinga <slouken@libsdl.org>
     1.7 +
     1.8 +  This software is provided 'as-is', without any express or implied
     1.9 +  warranty.  In no event will the authors be held liable for any damages
    1.10 +  arising from the use of this software.
    1.11 +
    1.12 +  Permission is granted to anyone to use this software for any purpose,
    1.13 +  including commercial applications, and to alter it and redistribute it
    1.14 +  freely, subject to the following restrictions:
    1.15 +
    1.16 +  1. The origin of this software must not be misrepresented; you must not
    1.17 +     claim that you wrote the original software. If you use this software
    1.18 +     in a product, an acknowledgment in the product documentation would be
    1.19 +     appreciated but is not required.
    1.20 +  2. Altered source versions must be plainly marked as such, and must not be
    1.21 +     misrepresented as being the original software.
    1.22 +  3. This notice may not be removed or altered from any source distribution.
    1.23 +*/
    1.24 +#include "../../SDL_internal.h"
    1.25 +#include "SDL_error.h"
    1.26 +#include "SDL_filesystem.h"
    1.27 +
    1.28 +#ifdef SDL_FILESYSTEM_NACL
    1.29 +
    1.30 +/* SDL_RWops on NACL are implemented using nacl_io, and require mount points
    1.31 + * to be established before actual file operations are performed
    1.32 + * 
    1.33 + * Ref: https://developers.google.com/native-client/dev/devguide/coding/nacl_io
    1.34 + */
    1.35 +
    1.36 +int 
    1.37 +SDL_NaClMount(const char* source, const char* target, const char* filesystemtype, 
    1.38 +          unsigned long mountflags, const void *data) {
    1.39 +    return mount(source, target, filesystemtype, mountflags, data);
    1.40 +}
    1.41 +
    1.42 +int 
    1.43 +SDL_NaClUmount(const char *target) {
    1.44 +    return umount(target);
    1.45 +}
    1.46 +
    1.47 +
    1.48 +char *
    1.49 +SDL_GetBasePath(void)
    1.50 +{
    1.51 +    SDL_Unsupported();
    1.52 +    return NULL;
    1.53 +}
    1.54 +
    1.55 +char *
    1.56 +SDL_GetPrefPath(const char *org, const char *app)
    1.57 +{
    1.58 +    SDL_Unsupported();
    1.59 +    return NULL;
    1.60 +}
    1.61 +
    1.62 +#endif /* __NACL__ */
    1.63 \ No newline at end of file
     2.1 --- a/src/filesystem/nacl/SDL_sysfilesytem.c	Mon Jun 16 10:58:09 2014 -0300
     2.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
     2.3 @@ -1,59 +0,0 @@
     2.4 -/*
     2.5 -  Simple DirectMedia Layer
     2.6 -  Copyright (C) 1997-2014 Sam Lantinga <slouken@libsdl.org>
     2.7 -
     2.8 -  This software is provided 'as-is', without any express or implied
     2.9 -  warranty.  In no event will the authors be held liable for any damages
    2.10 -  arising from the use of this software.
    2.11 -
    2.12 -  Permission is granted to anyone to use this software for any purpose,
    2.13 -  including commercial applications, and to alter it and redistribute it
    2.14 -  freely, subject to the following restrictions:
    2.15 -
    2.16 -  1. The origin of this software must not be misrepresented; you must not
    2.17 -     claim that you wrote the original software. If you use this software
    2.18 -     in a product, an acknowledgment in the product documentation would be
    2.19 -     appreciated but is not required.
    2.20 -  2. Altered source versions must be plainly marked as such, and must not be
    2.21 -     misrepresented as being the original software.
    2.22 -  3. This notice may not be removed or altered from any source distribution.
    2.23 -*/
    2.24 -#include "../../SDL_internal.h"
    2.25 -#include "SDL_error.h"
    2.26 -#include "SDL_filesystem.h"
    2.27 -
    2.28 -#ifdef SDL_FILESYSTEM_NACL
    2.29 -
    2.30 -/* SDL_RWops on NACL are implemented using nacl_io, and require mount points
    2.31 - * to be established before actual file operations are performed
    2.32 - * 
    2.33 - * Ref: https://developers.google.com/native-client/dev/devguide/coding/nacl_io
    2.34 - */
    2.35 -
    2.36 -int 
    2.37 -SDL_NaClMount(const char* source, const char* target, const char* filesystemtype, 
    2.38 -          unsigned long mountflags, const void *data) {
    2.39 -    return mount(source, target, filesystemtype, mountflags, data);
    2.40 -}
    2.41 -
    2.42 -int 
    2.43 -SDL_NaClUmount(const char *target) {
    2.44 -    return umount(target);
    2.45 -}
    2.46 -
    2.47 -
    2.48 -char *
    2.49 -SDL_GetBasePath(void)
    2.50 -{
    2.51 -    SDL_Unsupported();
    2.52 -    return NULL;
    2.53 -}
    2.54 -
    2.55 -char *
    2.56 -SDL_GetPrefPath(const char *org, const char *app)
    2.57 -{
    2.58 -    SDL_Unsupported();
    2.59 -    return NULL;
    2.60 -}
    2.61 -
    2.62 -#endif /* __NACL__ */
    2.63 \ No newline at end of file