Skip to content

Commit

Permalink
Build fixes for recent hl2sdk-dota updates.
Browse files Browse the repository at this point in the history
  • Loading branch information
psychonic committed Apr 22, 2013
1 parent 197458b commit 29a7b11
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 5 deletions.
11 changes: 9 additions & 2 deletions core/provider/provider_ep2.cpp
Expand Up @@ -62,7 +62,10 @@ DLL_IMPORT ICommandLine *CommandLine();
/* Functions */
void CacheUserMessages();
void Detour_Error(const tchar *pMsg, ...);
#if SOURCE_ENGINE >= SE_ORANGEBOX
#if SOURCE_ENGINE == SE_DOTA
void ClientCommand(edict_t *pEdict, const CCommand &args);
void LocalCommand_Meta(void *pUnknown, const CCommand &args);
#elif SOURCE_ENGINE >= SE_ORANGEBOX
void ClientCommand(edict_t *pEdict, const CCommand &args);
void LocalCommand_Meta(const CCommand &args);
#else
Expand Down Expand Up @@ -498,7 +501,11 @@ class GlobCommand : public IMetamodSourceCommandInfo
};
#endif

#if SOURCE_ENGINE >= SE_ORANGEBOX
#if SOURCE_ENGINE == SE_DOTA
void LocalCommand_Meta(void *pUnknown, const CCommand &args)
{
GlobCommand cmd(&args);
#elif SOURCE_ENGINE >= SE_ORANGEBOX
void LocalCommand_Meta(const CCommand &args)
{
GlobCommand cmd(&args);
Expand Down
12 changes: 9 additions & 3 deletions core/vsp_bridge.cpp
Expand Up @@ -32,7 +32,9 @@
#include <loader_bridge.h>
#include "provider/provider_ep2.h"

#if SOURCE_ENGINE >= SE_ORANGEBOX
#if SOURCE_ENGINE == SE_DOTA
SH_DECL_HOOK2_void(ConCommand, Dispatch, SH_NOATTRIB, false, void *, const CCommand &);
#elif SOURCE_ENGINE >= SE_ORANGEBOX
SH_DECL_HOOK1_void(ConCommand, Dispatch, SH_NOATTRIB, false, const CCommand &);
#else
SH_DECL_HOOK0_void(ConCommand, Dispatch, SH_NOATTRIB, false);
Expand All @@ -42,7 +44,9 @@ ConCommand *g_plugin_unload = NULL;
bool g_bIsTryingToUnload;
const char *vsp_desc = "Metamod:Source " MMS_FULL_VERSION;

#if SOURCE_ENGINE >= SE_ORANGEBOX
#if SOURCE_ENGINE == SE_DOTA
void InterceptPluginUnloads(void *pUnknown, const CCommand &args)
#elif SOURCE_ENGINE >= SE_ORANGEBOX
void InterceptPluginUnloads(const CCommand &args)
#else
void InterceptPluginUnloads()
Expand All @@ -51,7 +55,9 @@ void InterceptPluginUnloads()
g_bIsTryingToUnload = true;
}

#if SOURCE_ENGINE >= SE_ORANGEBOX
#if SOURCE_ENGINE == SE_DOTA
void InterceptPluginUnloads_Post(void *pUnknown, const CCommand &args)
#elif SOURCE_ENGINE >= SE_ORANGEBOX
void InterceptPluginUnloads_Post(const CCommand &args)
#else
void InterceptPluginUnloads_Post()
Expand Down

0 comments on commit 29a7b11

Please sign in to comment.