Put texcache under mod_dir

git-svn-id: https://svn.eduke32.com/eduke32@1028 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
terminx 2008-08-25 04:28:17 +00:00
parent 6dbf04a6fe
commit 7ff5a532c6
2 changed files with 4 additions and 2 deletions

View File

@ -325,7 +325,7 @@ static void uploadtexture(int doalloc, int xsiz, int ysiz, int intexfmt, int tex
# include "lzwnew.h" # include "lzwnew.h"
#endif #endif
char TEXCACHEDIR[] = "texcache"; char TEXCACHEDIR[BMAX_PATH] = "texcache";
typedef struct typedef struct
{ {
char magic[8]; // 'Polymost' char magic[8]; // 'Polymost'

View File

@ -115,7 +115,7 @@ static char defaultconfilename[BMAX_PATH] = {"EDUKE.CON"};
static char *confilename = defaultconfilename; static char *confilename = defaultconfilename;
char *duke3ddef = "duke3d.def"; char *duke3ddef = "duke3d.def";
char mod_dir[BMAX_PATH] = "/"; char mod_dir[BMAX_PATH] = "/";
extern char TEXCACHEDIR[BMAX_PATH];
extern int lastvisinc; extern int lastvisinc;
int g_Shareware = 0; int g_Shareware = 0;
@ -10818,6 +10818,8 @@ void app_main(int argc,const char **argv)
Bstrcat(root,mod_dir); Bstrcat(root,mod_dir);
addsearchpath(root); addsearchpath(root);
addsearchpath(mod_dir); addsearchpath(mod_dir);
Bsprintf(tempbuf,"%s/%s",mod_dir,TEXCACHEDIR);
Bstrcpy(TEXCACHEDIR,tempbuf);
} }
i = initgroupfile(duke3dgrp); i = initgroupfile(duke3dgrp);