From a11e1e1e4d51eb21e246c595873e8692ff1c3ad4 Mon Sep 17 00:00:00 2001 From: Eukara Date: Mon, 7 Aug 2017 19:46:29 +0000 Subject: [PATCH] dir/explorer recognizes .vvm extension now. git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@5135 fc73d0e0-1445-4013-8a0c-d673dee63da5 --- engine/client/cl_main.c | 1 + engine/common/fs.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/engine/client/cl_main.c b/engine/client/cl_main.c index 3f1463ad0..7dcfcf290 100644 --- a/engine/client/cl_main.c +++ b/engine/client/cl_main.c @@ -4621,6 +4621,7 @@ unsigned int Host_GuessFileType(const char *mimetype, const char *filename) {HRF_MODEL, "md2"}, {HRF_MODEL, "md3"}, {HRF_MODEL, "iqm"}, + {HRF_MODEL, "vvm"}, {HRF_MODEL, "psk"}, {HRF_MODEL, "zym"}, {HRF_MODEL, "dpm"}, diff --git a/engine/common/fs.c b/engine/common/fs.c index 42b3cfbfe..f46d9bf5d 100644 --- a/engine/common/fs.c +++ b/engine/common/fs.c @@ -778,7 +778,7 @@ static int QDECL COM_Dir_List(const char *name, qofs_t size, time_t mtime, void Q_snprintfz(link, sizeof(link), "\\map\\%s", name); colour = "^4"; //disconnects } - else if (!Q_strcasecmp(link, "bsp") || !Q_strcasecmp(link, "spr") || !Q_strcasecmp(link, "mdl") || !Q_strcasecmp(link, "md3") || !Q_strcasecmp(link, "iqm") || !Q_strcasecmp(link, "psk") || !Q_strcasecmp(link, "dpm") || !Q_strcasecmp(link, "zym") || !Q_strcasecmp(link, "md5mesh") || !Q_strcasecmp(link, "md5anim")) + else if (!Q_strcasecmp(link, "bsp") || !Q_strcasecmp(link, "spr") || !Q_strcasecmp(link, "mdl") || !Q_strcasecmp(link, "md3") || !Q_strcasecmp(link, "iqm") || !Q_strcasecmp(link, "vvm") || !Q_strcasecmp(link, "psk") || !Q_strcasecmp(link, "dpm") || !Q_strcasecmp(link, "zym") || !Q_strcasecmp(link, "md5mesh") || !Q_strcasecmp(link, "md5anim")) Q_snprintfz(link, sizeof(link), "\\modelviewer\\%s", name); else if (!Q_strcasecmp(link, "qc") || !Q_strcasecmp(link, "src") || !Q_strcasecmp(link, "qh") || !Q_strcasecmp(link, "h") || !Q_strcasecmp(link, "c") || !Q_strcasecmp(link, "cfg") || !Q_strcasecmp(link, "rc")