Mercurial > sdl-ios-xcode
view test/automated/rwops/TestSupportRWops_Generic.c @ 5284:96a22141cf86 tip
Changed output directory of Universal libSDL.a for iOS to respect build configurations. Template generator was updated to reflect these changes as well.
author | Eric Wing <ewing . public |-at-| gmail . com> |
---|---|
date | Sat, 12 Feb 2011 21:52:30 -0800 |
parents | e8916fe9cfc8 |
children |
line wrap: on
line source
/* Generic implementation for file opening routines. * Customizations for specific platforms should go in alternative files. */ // quiet windows compiler warnings #define _CRT_SECURE_NO_WARNINGS #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); }