From 553963295f71df94b38694c2972e3a59b81a23cc Mon Sep 17 00:00:00 2001 From: Arkshine Date: Sun, 8 Mar 2015 23:43:30 +0100 Subject: [PATCH] VFS: Add Valve file system interface --- amxmodx/meta_api.cpp | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/amxmodx/meta_api.cpp b/amxmodx/meta_api.cpp index 41507cbb..9e4a60d4 100755 --- a/amxmodx/meta_api.cpp +++ b/amxmodx/meta_api.cpp @@ -8,13 +8,6 @@ // https://alliedmods.net/amxmodx-license #include - -#if defined WIN32 -#include -#else -#include -#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" }; @@ -1493,7 +1490,9 @@ C_DLLEXPORT int Meta_Attach(PLUG_LOADTIME now, META_FUNCTIONS *pFunctionTable, m FlagMan.SetFile("cmdaccess.ini"); g_CvarManager.CreateCvarHook(); - + + GET_IFACE("filesystem_stdio", g_FileSystem, FILESYSTEM_INTERFACE_VERSION); + return (TRUE); }