Skip to content
This repository has been archived by the owner on Feb 11, 2021. It is now read-only.

Latest commit

 

History

History
32 lines (25 loc) · 801 Bytes

TestSupportRWops_Generic.c

File metadata and controls

32 lines (25 loc) · 801 Bytes
 
1
2
3
4
/* Generic implementation for file opening routines.
* Customizations for specific platforms should go in alternative files.
*/
May 18, 2013
May 18, 2013
5
/* quiet windows compiler warnings */
6
7
8
9
10
11
12
13
14
15
#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)
{
May 18, 2013
May 18, 2013
16
return fopen(file, mode);
17
18
19
20
}
FILE* TestSupportRWops_OpenFPFromWriteDir(const char *file, const char *mode)
{
May 18, 2013
May 18, 2013
21
return fopen(file, mode);
22
23
24
25
}
SDL_RWops* TestSupportRWops_OpenRWopsFromReadDir(const char *file, const char *mode)
{
May 18, 2013
May 18, 2013
26
return SDL_RWFromFile(file, mode);
27
28
29
30
}
SDL_RWops* TestSupportRWops_OpenRWopsFromWriteDir(const char *file, const char *mode)
{
May 18, 2013
May 18, 2013
31
return SDL_RWFromFile(file, mode);