2021-11-08 08:46:40 +00:00
|
|
|
#include "../plugin.h"
|
|
|
|
qboolean VPK_Init(void);
|
2021-11-08 08:46:48 +00:00
|
|
|
qboolean VTF_Init(void);
|
2021-11-08 08:46:57 +00:00
|
|
|
qboolean MDL_Init(void);
|
2021-11-08 08:47:05 +00:00
|
|
|
qboolean VMT_Init(void);
|
2021-11-08 08:47:16 +00:00
|
|
|
qboolean VBSP_Init(void);
|
2021-11-08 08:46:40 +00:00
|
|
|
|
|
|
|
qboolean Plug_Init(void)
|
|
|
|
{
|
2021-11-08 08:47:36 +00:00
|
|
|
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;
|
2021-11-08 08:46:40 +00:00
|
|
|
}
|
|
|
|
|