1
0
mirror of https://github.com/alliedmodders/metamod-source.git synced 2025-03-21 12:28:56 +01:00

The most incredibly pointless commit ever

--HG--
extra : convert_revision : svn%3Ac2935e3e-5518-0410-8daf-afa5dab7d4e3/trunk%40346
This commit is contained in:
Scott Ehlert 2007-03-02 02:43:22 +00:00
parent 2faa7923c4
commit 45bb183759
51 changed files with 67 additions and 92 deletions

View File

@ -3809,4 +3809,3 @@ FastDelegate20<Param1, Param2, Param3, Param4, Param5, Param6, Param7, Param8, P
} // namespace fastdelegate
#endif // !defined(FASTDELEGATE_H)

View File

@ -3809,4 +3809,3 @@ FastDelegate20<Param1, Param2, Param3, Param4, Param5, Param6, Param7, Param8, P
} // namespace fastdelegate
#endif // !defined(FASTDELEGATE_H)

View File

@ -1052,4 +1052,3 @@ FastDelegate@NUM<@SELARGS, FASTDLGT_RETTYPE> MakeDelegate(RetType (*func)(@FUNCA
} // namespace fastdelegate
#endif // !defined(FASTDELEGATE_H)

View File

@ -1,5 +1,5 @@
/* ======== SourceHook ========
* Copyright (C) 2004-2005 Metamod:Source Development Team
* Copyright (C) 2004-2007 Metamod:Source Development Team
* No warranties of any kind
*
* License: zlib/libpng
@ -910,4 +910,3 @@ namespace SourceHook
}
#endif

View File

@ -1,5 +1,5 @@
/* ======== SourceHook ========
* Copyright (C) 2004-2005 Metamod:Source Development Team
* Copyright (C) 2004-2007 Metamod:Source Development Team
* No warranties of any kind
*
* License: zlib/libpng
@ -330,4 +330,3 @@ namespace SourceHook
}
#endif

View File

@ -11,5 +11,3 @@ main.o: shworker.cpp bin
shworker: fd_hopter.o main.o bin
gcc -ldl -lstdc++ bin/fd_hopter.o bin/main.o -o bin/shworker.bin

View File

@ -1,5 +1,5 @@
/* ======== SourceHook ========
* Copyright (C) 2004-2005 Metamod:Source Development Team
* Copyright (C) 2004-2007 Metamod:Source Development Team
* No warranties of any kind
*
* License: zlib/libpng

View File

@ -1,5 +1,5 @@
/* ======== SourceHook ========
* Copyright (C) 2004-2005 Metamod:Source Development Team
* Copyright (C) 2004-2007 Metamod:Source Development Team
* No warranties of any kind
*
* License: zlib/libpng

View File

@ -1,5 +1,5 @@
/* ======== SourceMM ========
* Copyright (C) 2004-2005 Metamod:Source Development Team
* Copyright (C) 2004-2007 Metamod:Source Development Team
* No warranties of any kind
*
* License: zlib/libpng

View File

@ -1,5 +1,5 @@
/* ======== SourceHook ========
* Copyright (C) 2004-2005 Metamod:Source Development Team
* Copyright (C) 2004-2007 Metamod:Source Development Team
* No warranties of any kind
*
* License: zlib/libpng
@ -910,4 +910,3 @@ namespace SourceHook
}
#endif

View File

@ -1,5 +1,5 @@
/* ======== SourceHook ========
* Copyright (C) 2004-2005 Metamod:Source Development Team
* Copyright (C) 2004-2007 Metamod:Source Development Team
* No warranties of any kind
*
* License: zlib/libpng
@ -184,4 +184,3 @@ namespace SourceHook
}
#endif

View File

@ -1,12 +1,12 @@
/* ======== SourceMM ========
* Copyright (C) 2004-2006 Metamod:Source Development Team
* No warranties of any kind
*
* License: zlib/libpng
*
* Author(s): Pavol "PM OnoTo" Marko
* ============================
*/
* Copyright (C) 2004-2007 Metamod:Source Development Team
* No warranties of any kind
*
* License: zlib/libpng
*
* Author(s): Pavol "PM OnoTo" Marko
* ============================
*/
#ifndef __SH_STACK_H__
#define __SH_STACK_H__

View File

@ -1,5 +1,5 @@
/* ======== SourceMM ========
* Copyright (C) 2004-2005 Metamod:Source Development Team
* Copyright (C) 2004-2007 Metamod:Source Development Team
* No warranties of any kind
*
* License: zlib/libpng

View File

@ -1,5 +1,5 @@
/* ======== SourceMM ========
* Copyright (C) 2004-2005 Metamod:Source Development Team
* Copyright (C) 2004-2007 Metamod:Source Development Team
* No warranties of any kind
*
* License: zlib/libpng
@ -532,4 +532,3 @@ namespace SourceHook
};
#endif //_INCLUDE_SH_TINYHASH_H_

View File

@ -1,5 +1,5 @@
/* ======== SourceMM ========
* Copyright (C) 2004-2005 Metamod:Source Development Team
* Copyright (C) 2004-2007 Metamod:Source Development Team
* No warranties of any kind
*
* License: zlib/libpng
@ -488,4 +488,3 @@ public:
}; //namespace SourceHook
#endif // __CVECTOR_H__

View File

@ -1,5 +1,5 @@
/* ======== SourceHook ========
* Copyright (C) 2004-2005 Metamod:Source Development Team
* Copyright (C) 2004-2007 Metamod:Source Development Team
* No warranties of any kind
*
* License: zlib/libpng

View File

@ -1,5 +1,5 @@
/* ======== SourceHook ========
* Copyright (C) 2004-2005 Metamod:Source Development Team
* Copyright (C) 2004-2007 Metamod:Source Development Team
* No warranties of any kind
*
* License: zlib/libpng

View File

@ -1,5 +1,5 @@
/* ======== SourceHook ========
* Copyright (C) 2004-2005 Metamod:Source Development Team
* Copyright (C) 2004-2007 Metamod:Source Development Team
* No warranties of any kind
*
* License: zlib/libpng
@ -654,4 +654,3 @@ namespace SourceHook
}
#endif

View File

@ -1,4 +1,4 @@
#(C)2004-2005 SourceMM Development Team
#(C)2004-2007 SourceMM Development Team
# Makefile written by David "BAILOPAN" Anderson and Pavol Marko
OPT_FLAGS = -O3 -funroll-loops -s -pipe

View File

@ -129,4 +129,3 @@ void Test_UnpausePlugin(SourceHook::ISourceHook *shptr, SourceHook::Plugin plug)
{
static_cast<SourceHook::CSourceHookImpl *>(shptr)->UnpausePlugin(plug);
}

View File

@ -698,4 +698,3 @@ bool TestBasic(std::string &error)
return true;
}

View File

@ -169,4 +169,3 @@ bool TestVafmtAndOverload(std::string &error)
return true;
}

View File

@ -236,4 +236,3 @@ bool TestThisPtrOffs(std::string &error)
return true;
}

View File

@ -418,4 +418,3 @@ bool TestPlugSys(std::string &error)
return true;
}

View File

@ -113,4 +113,3 @@ bool TestBail(std::string &error)
return true;
}

View File

@ -37,4 +37,3 @@ namespace
SourceHook::Plugin g_PLID;
SH_DECL_HOOK1(IGaben, EatYams, SH_NOATTRIB, 0, int, int);
}

View File

@ -34,4 +34,3 @@ namespace N_TestBail
return true;
}
}

View File

@ -1,5 +1,5 @@
/* ======== SourceHook ========
* Copyright (C) 2004-2005 Metamod:Source Development Team
* Copyright (C) 2004-2007 Metamod:Source Development Team
* No warranties of any kind
*
* License: zlib/libpng
@ -151,4 +151,3 @@ namespace
#define CHECK_COND(c, err) if (!(c)) { error = err; return false; }
#endif

View File

@ -353,4 +353,3 @@ bool TestManual(std::string &error)
return true;
}

View File

@ -597,4 +597,3 @@ bool TestReentr(std::string &error)
return true;
}

View File

@ -1,5 +1,5 @@
/* ======== SourceMM ========
* Copyright (C) 2004-2006 Metamod:Source Development Team
* Copyright (C) 2004-2007 Metamod:Source Development Team
* No warranties of any kind
*
* License: zlib/libpng

View File

@ -541,13 +541,13 @@ bool CSmmAPI::CacheUserMessages()
SourceHook::MemFuncInfo info = {true, -1, 0, 0};
SourceHook::GetFuncInfo(&IServerGameDLL::GetUserMessageInfo, info);
// Get address of original GetUserMessageInfo()
/* Get address of original GetUserMessageInfo() */
char *vfunc = reinterpret_cast<char *>(g_GameDllPatch->GetOrigFunc(info.vtbloffs, info.vtblindex));
// If we can't get original function (GetOrigFunc bug?)
/* If we can't get original function, that means there's no hook */
if (vfunc == NULL)
{
// This means there's no hook, so we must get it manually - Lovely code <:-(
/* Get virtual function address 'manually' then */
char *adjustedptr = reinterpret_cast<char *>(g_GameDll.pGameDLL) + info.thisptroffs + info.vtbloffs;
char **vtable = *reinterpret_cast<char ***>(adjustedptr);
@ -558,25 +558,25 @@ bool CSmmAPI::CacheUserMessages()
if (vcmp(vfunc, MSGCLASS_SIG, MSGCLASS_SIGLEN))
{
// Get address of CUserMessages instance
/* Get address of CUserMessages instance */
char **userMsgClass = *reinterpret_cast<char ***>(vfunc + MSGCLASS_OFFS);
// Get address of CUserMessages::m_UserMessages
/* Get address of CUserMessages::m_UserMessages */
dict = reinterpret_cast<UserMsgDict *>(*userMsgClass);
} else if (vcmp(vfunc, MSGCLASS2_SIG, MSGCLASS2_SIGLEN)) {
#ifdef OS_WIN32
/* If we get here, the code is possibly inlined like in Dystopia */
// Get the address of the CUtlRBTree
/* Get the address of the CUtlRBTree */
char *rbtree = *reinterpret_cast<char **>(vfunc + MSGCLASS2_OFFS);
// The CUtlDict should be 8 bytes before the CUtlRBTree (yeah I know this is hacky)
/* CUtlDict should be 8 bytes before the CUtlRBTree (hacktacular!) */
dict = reinterpret_cast<UserMsgDict *>(rbtree - 8);
#elif defined OS_LINUX
// Get address of CUserMessages instance
/* Get address of CUserMessages instance */
char **userMsgClass = *reinterpret_cast<char ***>(vfunc + MSGCLASS2_OFFS);
// Get address of CUserMessages::m_UserMessages
/* Get address of CUserMessages::m_UserMessages */
dict = reinterpret_cast<UserMsgDict *>(*userMsgClass);
#endif
}
@ -585,7 +585,7 @@ bool CSmmAPI::CacheUserMessages()
{
m_MsgCount = dict->Count();
// Make sure count falls within bounds of an unsigned byte (engine sends message types as such)
/* Ensure that count is within bounds of an unsigned byte, because that's what engine supports */
if (m_MsgCount < 0 || m_MsgCount > 255)
{
m_MsgCount = -1;
@ -594,7 +594,7 @@ bool CSmmAPI::CacheUserMessages()
UserMessage *msg;
// Cache messages in our CUtlDict
/* Cache messages in our CUtlDict */
for (int i = 0; i < m_MsgCount; i++)
{
msg = dict->Element(i);

View File

@ -51,7 +51,6 @@ namespace SourceMM
void UnregisterConCmdBase(ISmmPlugin *plugin, ConCommandBase *pCommand);
void ConPrint(const char *fmt);
void ConPrintf(const char *fmt, ...);
bool CmdCacheSuccessful();
bool RemotePrintingAvailable()
{
return CmdCacheSuccessful();
@ -73,6 +72,7 @@ namespace SourceMM
const char *GetUserMessage(int index, int *size=NULL);
public:
bool CacheCmds();
bool CmdCacheSuccessful();
void LoadAsVSP();
bool VSPEnabled()
{

View File

@ -12,4 +12,5 @@ User Message API Functions - GetUserMessageCount(), FindUserMessage(), GetUserMe
- Garry's Mod 10
- Half-Life 2: Deathmatch
- The Ship
- SourceForts
- SourceForts

View File

@ -1,5 +1,5 @@
/* ======== SourceMM ========
* Copyright (C) 2004-2006 Metamod:Source Development Team
* Copyright (C) 2004-2007 Metamod:Source Development Team
* No warranties of any kind
*
* License: zlib/libpng

View File

@ -1,5 +1,5 @@
/* ======== SourceMM ========
* Copyright (C) 2004-2006 Metamod:Source Development Team
* Copyright (C) 2004-2007 Metamod:Source Development Team
* No warranties of any kind
*
* License: zlib/libpng
@ -106,7 +106,7 @@ public:
*/
virtual META_RES GetLastMetaReturn() =0;
public: //Added in 1.00-RC2 (0:0)
public: // Added in 1.00-RC2 (0:0)
/**
* @brief Allows access to Metamod's ConCommandBaseAccessor.
*
@ -147,7 +147,7 @@ public: //Added in 1.00-RC2 (0:0)
*/
virtual void ConPrintf(const char *fmt, ...) =0;
public: //Added in 1.1.0 (1:0)
public: // Added in 1.1.0 (1:0)
/**
* @brief Checks if ConPrint/ConPrintf will mirror to rcon.
*
@ -193,7 +193,7 @@ public: //Added in 1.1.0 (1:0)
*/
virtual void *MetaFactory(const char *iface, int *ret, PluginId *id) =0;
public: //Added in 1.1.2 (1:1)
public: // Added in 1.1.2 (1:1)
/**
* @brief Given a base interface name, such as ServerGameDLL or ServerGameDLL003,
* reformats the string to increase the number, then returns the new number.
@ -205,7 +205,7 @@ public: //Added in 1.1.2 (1:1)
*/
virtual int FormatIface(char iface[], unsigned int maxlength) =0;
public: //Added in 1.2 (1:2)
public: // Added in 1.2 (1:2)
/**
* @brief Searches for an interface for you.
*
@ -306,13 +306,15 @@ public: // Added in 1.4 (1:5)
};
/** Version history
* 1.1.0 bumped API to 1:0. The breaking changes occurred in sourcehook and the plugin API.
* 1.1.2 added API call for generating iface names.
* 1.2 added API more helper functions and new SourceHook version.
* 1.2.2 added API for printing to client console (with string formatting)
* 1.3 added new interface search API
* 1.4 added VSP listener and user message API
/**
* Version History
*
* 1.1.0 Bumped API to 1:0. The breaking changes occurred in SourceHook and the plugin API.
* 1.1.2 Added API call for generating iface names.
* 1.2 Added API more helper functions and new SourceHook version.
* 1.2.2 Added API for printing to client console (with string formatting).
* 1.3 Added new interface search API.
* 1.4 Added VSP listener and user message API.
*/
#endif //_INCLUDE_ISMM_API_H

View File

@ -1,5 +1,5 @@
/* ======== SourceMM ========
* Copyright (C) 2004-2006 Metamod:Source Development Team
* Copyright (C) 2004-2007 Metamod:Source Development Team
* No warranties of any kind
*
* License: zlib/libpng
@ -405,6 +405,5 @@ public:
} \
return false; \
}
#endif //_INCLUDE_ISMM_PLUGIN_H

View File

@ -26,4 +26,4 @@ freely, subject to the following restrictions:
-----------------------------------------------------------------------------
The zLib/libpng license has been approved by the "Open Source Initiative"
organization.
organization.

View File

@ -1,4 +1,4 @@
#(C)2004-2005 SourceMM Development Team
#(C)2004-2007 SourceMM Development Team
# Makefile written by David "BAILOPAN" Anderson
HL2SDK = ../../hl2sdk
@ -67,4 +67,3 @@ clean:
rm -rf Release/$(BINARY)
rm -rf Debug/*.o
rm -rf Debug/$(BINARY)

View File

@ -1,4 +1,4 @@
2007/02/?? 1.4.0:
2007/03/?? 1.4.0:
- Added API functions for retrieving User Message info without potentially crashing.
- Added API functions for letting SourceMM plugins use Valve Server Plugin callbacks.
- Changed version numbering to include the build number (SVN revision).

View File

@ -1,4 +1,4 @@
The software is Copyright (C) 2004-2006, Metamod:Source Development Team.
The software is Copyright (C) 2004-2007, Metamod:Source Development Team.
Metamod:Source is distributed under the "zLib/libpng" license, which is reproduced
below:

View File

@ -1,4 +1,4 @@
#(C)2004-2006 SourceMM Development Team
#(C)2004-2007 SourceMM Development Team
# Makefile written by David "BAILOPAN" Anderson
HL2SDK = ../../../hl2sdk

View File

@ -1,5 +1,5 @@
/* ======== sample_mm ========
* Copyright (C) 2004-2006 Metamod:Source Development Team
* Copyright (C) 2004-2007 Metamod:Source Development Team
* No warranties of any kind
*
* License: zlib/libpng
@ -237,4 +237,3 @@ void *MyListener::OnMetamodQuery(const char *iface, int *ret)
return NULL;
}

View File

@ -1,5 +1,5 @@
/* ======== sample_mm ========
* Copyright (C) 2004-2006 Metamod:Source Development Team
* Copyright (C) 2004-2007 Metamod:Source Development Team
* No warranties of any kind
*
* License: zlib/libpng

View File

@ -1,5 +1,5 @@
/* ======== sample_mm ========
* Copyright (C) 2004-2006 Metamod:Source Development Team
* Copyright (C) 2004-2007 Metamod:Source Development Team
* No warranties of any kind
*
* License: zlib/libpng

View File

@ -1,5 +1,5 @@
/* ======== sample_mm ========
* Copyright (C) 2004-2006 Metamod:Source Development Team
* Copyright (C) 2004-2007 Metamod:Source Development Team
* No warranties of any kind
*
* License: zlib/libpng

View File

@ -1,4 +1,4 @@
The software is Copyright (C) 2004-2006, Metamod:Source Development Team.
The software is Copyright (C) 2004-2007, Metamod:Source Development Team.
Metamod:Source is distributed under the "zLib/libpng" license, which is reproduced
below:

View File

@ -1,4 +1,4 @@
#(C)2004-2006 SourceMM Development Team
#(C)2004-2007 SourceMM Development Team
# Makefile written by David "BAILOPAN" Anderson
HL2SDK = ../../../hl2sdk

View File

@ -1,5 +1,5 @@
/* ======== stub_mm ========
* Copyright (C) 2004-2006 Metamod:Source Development Team
* Copyright (C) 2004-2007 Metamod:Source Development Team
* No warranties of any kind
*
* License: zlib/libpng
@ -103,4 +103,3 @@ const char *StubPlugin::GetLogTag()
{
return "STUB";
}

View File

@ -1,5 +1,5 @@
/* ======== stub_mm ========
* Copyright (C) 2004-2006 Metamod:Source Development Team
* Copyright (C) 2004-2007 Metamod:Source Development Team
* No warranties of any kind
*
* License: zlib/libpng

View File

@ -99,4 +99,3 @@ END
/////////////////////////////////////////////////////////////////////////////
#endif // not APSTUDIO_INVOKED