| 1 |
/** |
| 2 |
* Compute and store the search paths |
| 3 |
|
| 4 |
* Copyright (C) 2007, 2008, 2009 Sylvain Beucler |
| 5 |
|
| 6 |
* This file is part of GNU FreeDink |
| 7 |
|
| 8 |
* GNU FreeDink is free software; you can redistribute it and/or |
| 9 |
* modify it under the terms of the GNU General Public License as |
| 10 |
* published by the Free Software Foundation; either version 3 of the |
| 11 |
* License, or (at your option) any later version. |
| 12 |
|
| 13 |
* GNU FreeDink is distributed in the hope that it will be useful, but |
| 14 |
* WITHOUT ANY WARRANTY; without even the implied warranty of |
| 15 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 16 |
* General Public License for more details. |
| 17 |
|
| 18 |
* You should have received a copy of the GNU General Public License |
| 19 |
* along with this program. If not, see |
| 20 |
* <http://www.gnu.org/licenses/>. |
| 21 |
*/ |
| 22 |
|
| 23 |
#ifndef _PATH_H |
| 24 |
#define _PATH_H |
| 25 |
|
| 26 |
#include <stdio.h> |
| 27 |
|
| 28 |
extern bool paths_init(char* argv0, char* refdir_opt, char* dmoddir_opt); |
| 29 |
extern const char *paths_getdmoddir(void); |
| 30 |
extern const char *paths_getdmodname(void); |
| 31 |
extern const char *paths_getfallbackdir(void); |
| 32 |
extern const char *paths_getpkgdatadir(void); |
| 33 |
|
| 34 |
extern char* paths_dmodfile(const char* file); |
| 35 |
extern char* paths_fallbackfile(const char* file); |
| 36 |
extern char* paths_pkgdatafile(const char* file); |
| 37 |
|
| 38 |
extern FILE* paths_dmodfile_fopen(const char* file, const char* mode); |
| 39 |
extern FILE* paths_fallbackfile_fopen(const char* file, const char* mode); |
| 40 |
extern FILE* paths_pkgdatafile_fopen(const char* file, const char* mode); |
| 41 |
|
| 42 |
extern FILE* paths_savegame_fopen(int num, const char* mode); |
| 43 |
extern void paths_quit(void); |
| 44 |
|
| 45 |
extern void ts_paths_init(); |
| 46 |
|
| 47 |
#endif |