Added auto-restart functionality to the Updater extensions (bug 3530, r=pred).
This commit is contained in:
@@ -49,9 +49,9 @@
|
||||
|
||||
GameConfigManager g_GameConfigs;
|
||||
IGameConfig *g_pGameConf = NULL;
|
||||
char g_Game[256];
|
||||
char g_GameDesc[256] = {'!', '\0'};
|
||||
char g_GameName[256] = {'$', '\0'};
|
||||
static char g_Game[256];
|
||||
static char g_GameDesc[256] = {'!', '\0'};
|
||||
static char g_GameName[256] = {'$', '\0'};
|
||||
|
||||
#define PSTATE_NONE 0
|
||||
#define PSTATE_GAMES 1
|
||||
|
||||
@@ -632,3 +632,13 @@ void CHalfLife2::SetHandleEntity(CBaseHandle &hndl, edict_t *pEnt)
|
||||
|
||||
hndl.Set(pEntOther);
|
||||
}
|
||||
|
||||
const char *CHalfLife2::GetCurrentMap()
|
||||
{
|
||||
return STRING(gpGlobals->mapname);
|
||||
}
|
||||
|
||||
void CHalfLife2::ServerCommand(const char *buffer)
|
||||
{
|
||||
engine->ServerCommand(buffer);
|
||||
}
|
||||
|
||||
@@ -113,6 +113,8 @@ public: //IGameHelpers
|
||||
int IndexOfEdict(edict_t *pEnt);
|
||||
edict_t *GetHandleEntity(CBaseHandle &hndl);
|
||||
void SetHandleEntity(CBaseHandle &hndl, edict_t *pEnt);
|
||||
const char *GetCurrentMap();
|
||||
void ServerCommand(const char *buffer);
|
||||
public:
|
||||
void AddToFakeCliCmdQueue(int client, int userid, const char *cmd);
|
||||
void ProcessFakeCliCmdQueue();
|
||||
|
||||
@@ -717,6 +717,11 @@ const char *SourceModBase::GetCoreConfigValue(const char *key)
|
||||
return g_CoreConfig.GetCoreConfigValue(key);
|
||||
}
|
||||
|
||||
int SourceModBase::GetPluginId()
|
||||
{
|
||||
return g_PLID;
|
||||
}
|
||||
|
||||
SMGlobalClass *SMGlobalClass::head = NULL;
|
||||
|
||||
SMGlobalClass::SMGlobalClass()
|
||||
|
||||
@@ -133,6 +133,7 @@ public: // ISourceMod
|
||||
size_t FormatArgs(char *buffer, size_t maxlength, const char *fmt, va_list ap);
|
||||
void AddFrameAction(FRAMEACTION fn, void *data);
|
||||
const char *GetCoreConfigValue(const char *key);
|
||||
int GetPluginId();
|
||||
private:
|
||||
CStack<CDataPack *> m_freepacks;
|
||||
char m_SMBaseDir[PLATFORM_MAX_PATH];
|
||||
|
||||
Reference in New Issue
Block a user