diff --git a/core/mm_api.cpp b/core/mm_api.cpp new file mode 100644 index 00000000..296e5c41 --- /dev/null +++ b/core/mm_api.cpp @@ -0,0 +1,73 @@ +#include +#include "mm_api.h" +#include "sm_version.h" + +SourceMod g_SourceMod; + +PLUGIN_EXPOSE(SourceMod, g_SourceMod); + +bool SourceMod::Load(PluginId id, ISmmAPI *ismm, char *error, size_t maxlen, bool late) +{ + PLUGIN_SAVEVARS(); + + return true; +} + +bool SourceMod::Unload(char *error, size_t maxlen) +{ + return true; +} + +bool SourceMod::Pause(char *error, size_t maxlen) +{ + return true; +} + +bool SourceMod::Unpause(char *error, size_t maxlen) +{ + return true; +} + +void SourceMod::AllPluginsLoaded() +{ +} + +const char *SourceMod::GetAuthor() +{ + return "AlliedModders, LLC"; +} + +const char *SourceMod::GetName() +{ + return "SourceMod"; +} + +const char *SourceMod::GetDescription() +{ + return "Extensible administration and scripting system"; +} + +const char *SourceMod::GetURL() +{ + return "http://www.sourcemod.net/"; +} + +const char *SourceMod::GetLicense() +{ + return "See LICENSE.txt"; +} + +const char *SourceMod::GetVersion() +{ + return SOURCEMOD_VERSION; +} + +const char *SourceMod::GetDate() +{ + return __DATE__; +} + +const char *SourceMod::GetLogTag() +{ + return "SRCMOD"; +} diff --git a/core/mm_api.h b/core/mm_api.h new file mode 100644 index 00000000..af3a829c --- /dev/null +++ b/core/mm_api.h @@ -0,0 +1,29 @@ +#ifndef _INCLUDE_SOURCEMOD_MM_API_H_ +#define _INCLUDE_SOURCEMOD_MM_API_H_ + +#include + +class SourceMod : public ISmmPlugin +{ +public: + bool Load(PluginId id, ISmmAPI *ismm, char *error, size_t maxlen, bool late); + bool Unload(char *error, size_t maxlen); + bool Pause(char *error, size_t maxlen); + bool Unpause(char *error, size_t maxlen); + void AllPluginsLoaded(); +public: + const char *GetAuthor(); + const char *GetName(); + const char *GetDescription(); + const char *GetURL(); + const char *GetLicense(); + const char *GetVersion(); + const char *GetDate(); + const char *GetLogTag(); +}; + +extern SourceMod g_SourceMod; + +PLUGIN_GLOBALVARS(); + +#endif //_INCLUDE_SOURCEMOD_MM_API_H_ diff --git a/core/msvc8/sourcemod_mm.sln b/core/msvc8/sourcemod_mm.sln new file mode 100644 index 00000000..6a65d2ef --- /dev/null +++ b/core/msvc8/sourcemod_mm.sln @@ -0,0 +1,20 @@ + +Microsoft Visual Studio Solution File, Format Version 9.00 +# Visual Studio 2005 +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "sourcemod_mm", "sourcemod_mm.vcproj", "{E39527CD-7CAB-4420-97CC-DA1B93B260BC}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Win32 = Debug|Win32 + Release|Win32 = Release|Win32 + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {E39527CD-7CAB-4420-97CC-DA1B93B260BC}.Debug|Win32.ActiveCfg = Debug|Win32 + {E39527CD-7CAB-4420-97CC-DA1B93B260BC}.Debug|Win32.Build.0 = Debug|Win32 + {E39527CD-7CAB-4420-97CC-DA1B93B260BC}.Release|Win32.ActiveCfg = Release|Win32 + {E39527CD-7CAB-4420-97CC-DA1B93B260BC}.Release|Win32.Build.0 = Release|Win32 + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection +EndGlobal diff --git a/core/msvc8/sourcemod_mm.vcproj b/core/msvc8/sourcemod_mm.vcproj new file mode 100644 index 00000000..d55bb6c0 --- /dev/null +++ b/core/msvc8/sourcemod_mm.vcproj @@ -0,0 +1,211 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/core/sm_version.h b/core/sm_version.h new file mode 100644 index 00000000..6986a5bd --- /dev/null +++ b/core/sm_version.h @@ -0,0 +1,10 @@ +#ifndef _INCLUDE_SOURCEMOD_VERSION_H_ +#define _INCLUDE_SOURCEMOD_VERSION_H_ + +#define SOURCEMOD_VERSION "1.0.0.0" +#define SOURCEMOD_V_MAJOR 1 +#define SOURCEMOD_V_MINOR 0 +#define SOURCEMOD_V_REV 0 +#define SOURCEMOD_V_BUILD 0 + +#endif //_INCLUDE_SOURCEMOD_VERSION_H_