core/sourcemm_api.cpp
changeset 145 473df5b9878e
child 146 248810641279
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/core/sourcemm_api.cpp	Mon Nov 06 10:57:37 2006 +0000
     1.3 @@ -0,0 +1,82 @@
     1.4 +#include <oslink.h>
     1.5 +#include "sourcemm_api.h"
     1.6 +#include "sm_version.h"
     1.7 +#include "CTextParsers.h"
     1.8 +
     1.9 +SourceMod_Core g_SourceMod;
    1.10 +
    1.11 +PLUGIN_EXPOSE(SourceMod, g_SourceMod);
    1.12 +
    1.13 +class Test : public ITextListener_INI
    1.14 +{
    1.15 +public:
    1.16 +};
    1.17 +
    1.18 +bool SourceMod_Core::Load(PluginId id, ISmmAPI *ismm, char *error, size_t maxlen, bool late)
    1.19 +{
    1.20 +	PLUGIN_SAVEVARS();
    1.21 +
    1.22 +	Test test;
    1.23 +	bool result = g_TextParse.ParseFile_INI("c:\\gaben.ini", &test, NULL, NULL);
    1.24 +
    1.25 +	return true;
    1.26 +}
    1.27 +
    1.28 +bool SourceMod_Core::Unload(char	*error, size_t maxlen)
    1.29 +{
    1.30 +	return true;
    1.31 +}
    1.32 +
    1.33 +bool SourceMod_Core::Pause(char *error, size_t maxlen)
    1.34 +{
    1.35 +	return true;
    1.36 +}
    1.37 +
    1.38 +bool SourceMod_Core::Unpause(char *error, size_t maxlen)
    1.39 +{
    1.40 +	return true;
    1.41 +}
    1.42 +
    1.43 +void SourceMod_Core::AllPluginsLoaded()
    1.44 +{
    1.45 +}
    1.46 +
    1.47 +const char *SourceMod_Core::GetAuthor()
    1.48 +{
    1.49 +	return "AlliedModders, LLC";
    1.50 +}
    1.51 +
    1.52 +const char *SourceMod_Core::GetName()
    1.53 +{
    1.54 +	return "SourceMod";
    1.55 +}
    1.56 +
    1.57 +const char *SourceMod_Core::GetDescription()
    1.58 +{
    1.59 +	return "Extensible administration and scripting system";
    1.60 +}
    1.61 +
    1.62 +const char *SourceMod_Core::GetURL()
    1.63 +{
    1.64 +	return "http://www.sourcemod.net/";
    1.65 +}
    1.66 +
    1.67 +const char *SourceMod_Core::GetLicense()
    1.68 +{
    1.69 +	return "See LICENSE.txt";
    1.70 +}
    1.71 +
    1.72 +const char *SourceMod_Core::GetVersion()
    1.73 +{
    1.74 +	return SOURCEMOD_VERSION;
    1.75 +}
    1.76 +
    1.77 +const char *SourceMod_Core::GetDate()
    1.78 +{
    1.79 +	return __DATE__;
    1.80 +}
    1.81 +
    1.82 +const char *SourceMod_Core::GetLogTag()
    1.83 +{
    1.84 +	return "SRCMOD";
    1.85 +}