mirror of
https://github.com/DrBeef/Raze.git
synced 2024-11-15 17:01:51 +00:00
Put texcache under mod_dir
git-svn-id: https://svn.eduke32.com/eduke32@1028 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
parent
6dbf04a6fe
commit
7ff5a532c6
2 changed files with 4 additions and 2 deletions
|
@ -325,7 +325,7 @@ static void uploadtexture(int doalloc, int xsiz, int ysiz, int intexfmt, int tex
|
|||
# include "lzwnew.h"
|
||||
#endif
|
||||
|
||||
char TEXCACHEDIR[] = "texcache";
|
||||
char TEXCACHEDIR[BMAX_PATH] = "texcache";
|
||||
typedef struct
|
||||
{
|
||||
char magic[8]; // 'Polymost'
|
||||
|
|
|
@ -115,7 +115,7 @@ static char defaultconfilename[BMAX_PATH] = {"EDUKE.CON"};
|
|||
static char *confilename = defaultconfilename;
|
||||
char *duke3ddef = "duke3d.def";
|
||||
char mod_dir[BMAX_PATH] = "/";
|
||||
|
||||
extern char TEXCACHEDIR[BMAX_PATH];
|
||||
extern int lastvisinc;
|
||||
|
||||
int g_Shareware = 0;
|
||||
|
@ -10818,6 +10818,8 @@ void app_main(int argc,const char **argv)
|
|||
Bstrcat(root,mod_dir);
|
||||
addsearchpath(root);
|
||||
addsearchpath(mod_dir);
|
||||
Bsprintf(tempbuf,"%s/%s",mod_dir,TEXCACHEDIR);
|
||||
Bstrcpy(TEXCACHEDIR,tempbuf);
|
||||
}
|
||||
|
||||
i = initgroupfile(duke3dgrp);
|
||||
|
|
Loading…
Reference in a new issue