| 1 | #ifndef FILES_HEADER_FILE__ |
| 2 | #define FILES_HEADER_FILE__ |
| 3 | |
| 4 | #include <SDL.h> |
| 5 | |
| 6 | #ifndef DATADIR |
| 7 | #define DATADIR "." |
| 8 | #endif |
| 9 | #ifndef OPTDIR |
| 10 | #define OPTDIR "/opt/openssn" |
| 11 | #endif |
| 12 | |
| 13 | // Find the full path of a file based on its name. |
| 14 | // The return value should be freed UNLESS the return |
| 15 | // value is equal to the filename passed in. |
| 16 | char *Find_Data_File(char *filename); |
| 17 | |
| 18 | |
| 19 | // Try to find the image file in various locations |
| 20 | SDL_Surface *Load_Image(char *filename); |
| 21 | |
| 22 | |
| 23 | #endif |
| 24 |