Detailed Description
These functions are used as replacement to common C and SDL functions that are related to file opening and reading/writing.
For GNU/Linux, they call file_path() to determine the path to the file to open in ~/.atrinik, and if the file doesn't exist there, copy it there from the directory the client is running in.
Function Documentation
| FILE* fopen_wrapper |
( |
const char * |
fname, |
|
|
const char * |
mode |
|
) |
| |
fopen wrapper.
- Parameters:
-
| fname | The file name. |
| mode | File mode. |
- Returns:
- Return value of fopen().
Definition at line 482 of file wrapper.c.
| SDL_Surface* IMG_Load_wrapper |
( |
const char * |
file | ) |
|
IMG_Load wrapper.
- Parameters:
-
- Returns:
- Return value of IMG_Load().
Definition at line 491 of file wrapper.c.
| TTF_Font* TTF_OpenFont_wrapper |
( |
const char * |
file, |
|
|
int |
ptsize |
|
) |
| |
TTF_OpenFont wrapper.
- Parameters:
-
| file | The file name. |
| ptsize | Size of font. |
- Returns:
- Return value of TTF_OpenFont().
Definition at line 501 of file wrapper.c.