From 7ff5a532c6f9bbf8b9f9c9729ac0e725a9eb613c Mon Sep 17 00:00:00 2001 From: terminx Date: Mon, 25 Aug 2008 04:28:17 +0000 Subject: [PATCH] Put texcache under mod_dir git-svn-id: https://svn.eduke32.com/eduke32@1028 1a8010ca-5511-0410-912e-c29ae57300e0 --- polymer/build/src/polymost.c | 2 +- polymer/eduke32/source/game.c | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/polymer/build/src/polymost.c b/polymer/build/src/polymost.c index cb655eaed..7e71500b6 100644 --- a/polymer/build/src/polymost.c +++ b/polymer/build/src/polymost.c @@ -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' diff --git a/polymer/eduke32/source/game.c b/polymer/eduke32/source/game.c index 5a7547c8d..97d498eb4 100644 --- a/polymer/eduke32/source/game.c +++ b/polymer/eduke32/source/game.c @@ -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);