Mercurial > sdl-ios-xcode
view test/automated/rwops/TestSupportRWops_Generic.c @ 4767:dc3fd9b7fcbc
I'm actually going to have to alter this proposed API a fair bit, but it's coming along. I want to keep it as orthogonal to the rest of SDL as possible.
author | Eli Gottlieb <eligottlieb@gmail.com> |
---|---|
date | Sun, 23 May 2010 01:27:09 -0400 |
parents | 033c455bbe99 |
children | 27ab20a36eba |
line wrap: on
line source
/* Generic implementation for file opening routines. * Customizations for specific platforms should go in alternative files. */ #include <stdio.h> #include "SDL.h" const char* RWOPS_READ = "rwops/read"; const char* RWOPS_WRITE = "rwops/write"; FILE* TestSupportRWops_OpenFPFromReadDir(const char *file, const char *mode) { return fopen(file, mode); } FILE* TestSupportRWops_OpenFPFromWriteDir(const char *file, const char *mode) { return fopen(file, mode); } SDL_RWops* TestSupportRWops_OpenRWopsFromReadDir(const char *file, const char *mode) { return SDL_RWFromFile(file, mode); } SDL_RWops* TestSupportRWops_OpenRWopsFromWriteDir(const char *file, const char *mode) { return SDL_RWFromFile(file, mode); }