diff -r 6b2d311e4c01 -r d096210677d4 sourcehook/sourcehook.cpp --- a/sourcehook/sourcehook.cpp Sat Nov 24 06:11:23 2007 +0000 +++ b/sourcehook/sourcehook.cpp Mon Nov 26 14:03:25 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