sourcemod/core/sourcemm_api.cpp
David Anderson f19fbac013 renamed mm_api, I don't like short names!
finished and tested the INI parser and its API

--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40150
2006-11-06 10:57:37 +00:00

83 lines
1.4 KiB
C++

#include <oslink.h>
#include "sourcemm_api.h"
#include "sm_version.h"
#include "CTextParsers.h"
SourceMod_Core g_SourceMod;
PLUGIN_EXPOSE(SourceMod, g_SourceMod);
class Test : public ITextListener_INI
{
public:
};
bool SourceMod_Core::Load(PluginId id, ISmmAPI *ismm, char *error, size_t maxlen, bool late)
{
PLUGIN_SAVEVARS();
Test test;
bool result = g_TextParse.ParseFile_INI("c:\\gaben.ini", &test, NULL, NULL);
return true;
}
bool SourceMod_Core::Unload(char *error, size_t maxlen)
{
return true;
}
bool SourceMod_Core::Pause(char *error, size_t maxlen)
{
return true;
}
bool SourceMod_Core::Unpause(char *error, size_t maxlen)
{
return true;
}
void SourceMod_Core::AllPluginsLoaded()
{
}
const char *SourceMod_Core::GetAuthor()
{
return "AlliedModders, LLC";
}
const char *SourceMod_Core::GetName()
{
return "SourceMod";
}
const char *SourceMod_Core::GetDescription()
{
return "Extensible administration and scripting system";
}
const char *SourceMod_Core::GetURL()
{
return "http://www.sourcemod.net/";
}
const char *SourceMod_Core::GetLicense()
{
return "See LICENSE.txt";
}
const char *SourceMod_Core::GetVersion()
{
return SOURCEMOD_VERSION;
}
const char *SourceMod_Core::GetDate()
{
return __DATE__;
}
const char *SourceMod_Core::GetLogTag()
{
return "SRCMOD";
}