Move searchpath out of quakefs.h.

It's not needed, nor should it be used, anywhere else.
This commit is contained in:
Bill Currie 2010-08-24 16:47:39 +09:00
parent 478394ef81
commit 0cc4bc8c69
2 changed files with 7 additions and 8 deletions

View file

@ -47,12 +47,6 @@ typedef struct filelist_s {
int size;
} filelist_t;
typedef struct searchpath_s {
char *filename;
struct pack_s *pack; // only one of filename / pack will be used
struct searchpath_s *next;
} searchpath_t;
typedef struct gamedir_s {
const char *name;
const char *gamedir;
@ -72,7 +66,6 @@ typedef struct gamedir_s {
*/
typedef void gamedir_callback_t (int phase);
extern searchpath_t *qfs_searchpaths;
extern gamedir_t *qfs_gamedir;
extern struct cvar_s *fs_sharepath;

View file

@ -133,7 +133,13 @@ VISIBLE const char *qfs_userpath;
VISIBLE int qfs_filesize;
searchpath_t *qfs_searchpaths;
typedef struct searchpath_s {
char *filename;
struct pack_s *pack; // only one of filename / pack will be used
struct searchpath_s *next;
} searchpath_t;
static searchpath_t *qfs_searchpaths;
//QFS