From 789d9bd8e6a2a5e4e3d470e5972dc31f28d59e20 Mon Sep 17 00:00:00 2001 From: hendricks266 Date: Fri, 22 Feb 2019 03:40:49 +0000 Subject: [PATCH] Rename "textures" to "texturecache" and "textures.cache" to "texturecache.index" This avoids conflicts with folders named "textures", such as in World Tour. Thanks to enderandrew for the observation. git-svn-id: https://svn.eduke32.com/eduke32@7347 1a8010ca-5511-0410-912e-c29ae57300e0 --- source/build/src/texcache.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/source/build/src/texcache.cpp b/source/build/src/texcache.cpp index 776c6a2d1..533c7ff21 100644 --- a/source/build/src/texcache.cpp +++ b/source/build/src/texcache.cpp @@ -16,7 +16,7 @@ globaltexcache texcache; -char TEXCACHEFILE[BMAX_PATH] = "textures"; +char TEXCACHEFILE[BMAX_PATH] = "texturecache"; static const char *texcache_errors[TEXCACHEERRORS] = { "no error", @@ -283,7 +283,7 @@ static void texcache_deletefiles(void) { unlink(TEXCACHEFILE); Bstrcpy(ptempbuf, TEXCACHEFILE); - Bstrcat(ptempbuf, ".cache"); + Bstrcat(ptempbuf, ".index"); unlink(ptempbuf); } @@ -308,7 +308,7 @@ int32_t texcache_enabled(void) void texcache_openfiles(void) { Bstrcpy(ptempbuf, TEXCACHEFILE); - Bstrcat(ptempbuf, ".cache"); + Bstrcat(ptempbuf, ".index"); texcache.index = Bfopen(ptempbuf, "at+"); texcache.handle = Bopen(TEXCACHEFILE, BO_BINARY | BO_CREAT | BO_APPEND | BO_RDWR, BS_IREAD | BS_IWRITE); @@ -371,7 +371,7 @@ void texcache_invalidate(void) int texcache_loadoffsets(void) { Bstrcpy(ptempbuf, TEXCACHEFILE); - Bstrcat(ptempbuf, ".cache"); + Bstrcat(ptempbuf, ".index"); scriptfile *script = scriptfile_fromfile(ptempbuf); if (!script) return -1;