added .wav files to the pure client read exception list

This commit is contained in:
myT 2023-03-01 02:43:28 +01:00
parent 7e0de354c2
commit 693415a6e2
2 changed files with 4 additions and 1 deletions

View File

@ -57,6 +57,9 @@ add: /waitms <milliseconds> to delay command executions by the specified number
add: r_alphaToCoverageMipBoost <0.0 to 0.5> (default: 0.125) boosts the alpha value of higher mip levels
with A2C enabled, it prevents alpha-tested surfaces from fading (too much) in the distance
chg: the client can now read .wav files from the local file system when connected to a pure server
this allows e.g. cg_fragSound to load sounds from the local file system instead of .pk3 files
chg: CVar sets will use all arguments instead of only the first one
example: pressing n with `bind n "name x y z"` will rename to "x y z" instead of "x"

View File

@ -837,7 +837,7 @@ qbool FS_FilenameCompare( const char *s1, const char *s2 ) {
static qbool FS_IsPureClientReadException( const char* filename )
{
static const char* extensions[] = { ".cfg", ".ttf", ".dat", ".jpg", ".jpeg", ".tga", ".png", ".shader" };
static const char* extensions[] = { ".cfg", ".ttf", ".dat", ".jpg", ".jpeg", ".tga", ".png", ".shader", ".wav" };
const int shortestExtLength = 3;
const int nameLength = strlen(filename);