VFS: Add Valve file system interface

This commit is contained in:
Arkshine 2015-03-08 23:43:30 +01:00
parent d69ddc7234
commit 553963295f

View File

@ -8,13 +8,6 @@
// https://alliedmods.net/amxmodx-license
#include <time.h>
#if defined WIN32
#include <direct.h>
#else
#include <dirent.h>
#endif
#include "amxmodx.h"
#include "fakemeta.h"
#include "CMenu.h"
@ -32,6 +25,8 @@
#include "CDataPack.h"
#include "textparse.h"
#include "CvarManager.h"
#include "CLibrarySys.h"
#include "CFileSystem.h"
plugin_info_t Plugin_info =
{
@ -143,6 +138,8 @@ int FF_InconsistentFile = -1;
int FF_ClientAuthorized = -1;
int FF_ChangeLevel = -1;
IFileSystem* g_FileSystem;
bool ColoredMenus(String & ModName)
{
const char * pModNames[] = { "cstrike", "czero", "dmc", "dod", "tfc", "valve" };
@ -1494,6 +1491,8 @@ C_DLLEXPORT int Meta_Attach(PLUG_LOADTIME now, META_FUNCTIONS *pFunctionTable, m
g_CvarManager.CreateCvarHook();
GET_IFACE<IFileSystem>("filesystem_stdio", g_FileSystem, FILESYSTEM_INTERFACE_VERSION);
return (TRUE);
}