mirror of
https://github.com/PCSX2/pcsx2.git
synced 2025-04-02 10:52:54 -04:00
git-svn-id: http://pcsx2.googlecode.com/svn/trunk@4337 96395faa-99c1-11dd-bbfe-3dabce05a288
32 lines
786 B
C
32 lines
786 B
C
/* 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);
|
|
}
|