mirror of
https://github.com/nzp-team/fteqw.git
synced 2024-11-25 13:21:36 +00:00
b01f2f69d8
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@6117 fc73d0e0-1445-4013-8a0c-d673dee63da5
22 lines
902 B
C
22 lines
902 B
C
#include "../plugin.h"
|
|
qboolean VPK_Init(void);
|
|
qboolean VTF_Init(void);
|
|
qboolean MDL_Init(void);
|
|
qboolean VMT_Init(void);
|
|
qboolean VBSP_Init(void);
|
|
|
|
qboolean Plug_Init(void)
|
|
{
|
|
qboolean somethingisokay = false;
|
|
char plugname[128];
|
|
strcpy(plugname, "hl2");
|
|
plugfuncs->GetPluginName(0, plugname, sizeof(plugname));
|
|
|
|
if (!VPK_Init()) Con_Printf(CON_ERROR"%s: VPK support unavailable\n", plugname); else somethingisokay = true;
|
|
if (!VTF_Init()) Con_Printf(CON_ERROR"%s: VTF support unavailable\n", plugname); else somethingisokay = true;
|
|
if (!VMT_Init()) Con_Printf(CON_ERROR"%s: VMT support unavailable\n", plugname); else somethingisokay = true;
|
|
if (!MDL_Init()) Con_Printf(CON_ERROR"%s: MDL support unavailable\n", plugname); else somethingisokay = true;
|
|
if (!VBSP_Init()) Con_Printf(CON_ERROR"%s: BSP support unavailable\n", plugname); else somethingisokay = true;
|
|
return somethingisokay;
|
|
}
|
|
|