1.1 --- a/core/CoreConfig.cpp Tue Sep 11 12:29:58 2007 +0000
1.2 +++ b/core/CoreConfig.cpp Tue Sep 11 15:10:18 2007 +0000
1.3 @@ -29,6 +29,7 @@
1.4 * Version: $Id$
1.5 */
1.6
1.7 +#include <ITextParsers.h>
1.8 #include "CoreConfig.h"
1.9 #include "sourcemod.h"
1.10 #include "sourcemm_api.h"
1.11 @@ -36,7 +37,6 @@
1.12 #include "sm_version.h"
1.13 #include "sm_stringutil.h"
1.14 #include "LibrarySys.h"
1.15 -#include "TextParsers.h"
1.16 #include "Logger.h"
1.17 #include "PluginSys.h"
1.18 #include "ForwardSys.h"
1.19 @@ -115,10 +115,10 @@
1.20 g_LibSys.PathFormat(filePath, sizeof(filePath), "%s/%s", g_SourceMod.GetGamePath(), corecfg);
1.21
1.22 /* Parse config file */
1.23 - if ((err=g_TextParser.ParseFile_SMC(filePath, this, NULL, NULL)) != SMCParse_Okay)
1.24 + if ((err=textparsers->ParseFile_SMC(filePath, this, NULL, NULL)) != SMCParse_Okay)
1.25 {
1.26 /* :TODO: This won't actually log or print anything :( - So fix that somehow */
1.27 - const char *error = g_TextParser.GetSMCErrorString(err);
1.28 + const char *error = textparsers->GetSMCErrorString(err);
1.29 g_Logger.LogFatal("[SM] Error encountered parsing core config file: %s", error ? error : "");
1.30 }
1.31 }