diff -r 2efe13dab607 -r deec66cea8cc sourcehook/sourcehook.cpp --- a/sourcehook/sourcehook.cpp Fri Nov 09 21:14:37 2007 +0000 +++ b/sourcehook/sourcehook.cpp Sat Nov 10 16:10:55 2007 +0000 @@ -151,6 +151,25 @@ return true; } + + bool CProto::ExactlyEqual(const CProto &other) const + { + if (m_Version != other.m_Version || + m_NumOfParams != other.m_NumOfParams || + m_Convention != other.m_Convention || + GetRet() != other.GetRet()) + { + return false; + } + + for (int i = 0; i < m_NumOfParams; ++i) + { + if(GetParam(i) != other.GetParam(i)) + return false; + } + + return true; + } ////////////////////////////////////////////////////////////////////////// // CHookManager