]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - image.c
patch from VorteX which removes special menu behavior for
[xonotic/darkplaces.git] / image.c
diff --git a/image.c b/image.c
index b41f780141bc1c940451936590bb00e877ada4d0..0745ea608e6fe367b5f4197d5d02578191b50b38 100644 (file)
--- a/image.c
+++ b/image.c
@@ -720,6 +720,20 @@ imageformat_t imageformats_nopath[] =
        {NULL, NULL}
 };
 
+// GAME_DELUXEQUAKE only
+// VorteX: the point why i use such messy texture paths is
+// that GtkRadiant can't detect normal/gloss textures
+// and exclude them from texture browser
+// so i just use additional folder to store this textures
+imageformat_t imageformats_dq[] =
+{
+       {"%s.tga", LoadTGA},
+       {"%s.jpg", JPEG_LoadImage},
+       {"texturemaps/%s.tga", LoadTGA},
+       {"texturemaps/%s.jpg", JPEG_LoadImage},
+       {NULL, NULL}
+};
+
 imageformat_t imageformats_textures[] =
 {
        {"%s.tga", LoadTGA_BGRA},
@@ -774,6 +788,8 @@ unsigned char *loadimagepixelsbgra (const char *filename, qboolean complain, qbo
        }
        if (gamemode == GAME_TENEBRAE)
                firstformat = imageformats_tenebrae;
+       else if (gamemode == GAME_DELUXEQUAKE)
+               firstformat = imageformats_dq;
        else if (!strcasecmp(name, "textures"))
                firstformat = imageformats_textures;
        else if (!strcasecmp(name, "gfx"))