Fixed
amb277 - failed to get user message list in Kreedz Climbing
1.1 --- a/sourcemm/CSmmAPI.cpp Mon May 07 18:54:30 2007 +0000
1.2 +++ b/sourcemm/CSmmAPI.cpp Fri May 11 19:14:21 2007 +0000
1.3 @@ -516,6 +516,11 @@
1.4 #define MSGCLASS2_SIGLEN 16
1.5 #define MSGCLASS2_SIG "\x56\x8B\x74\x24\x2A\x85\xF6\x7C\x2A\x3B\x35\x2A\x2A\x2A\x2A\x7D"
1.6 #define MSGCLASS2_OFFS 11
1.7 +
1.8 + /* Windows frame pointer sig */
1.9 + #define MSGCLASS3_SIGLEN 18
1.10 + #define MSGCLASS3_SIG "\x55\x8B\xEC\x51\x89\x2A\x2A\x8B\x2A\x2A\x50\x8B\x0D\x2A\x2A\x2A\x2A\xE8"
1.11 + #define MSGCLASS3_OFFS 13
1.12 #elif defined OS_LINUX
1.13 /* No frame pointer sig */
1.14 #define MSGCLASS_SIGLEN 14
1.15 @@ -586,6 +591,14 @@
1.16 /* Get address of CUserMessages::m_UserMessages */
1.17 dict = reinterpret_cast<UserMsgDict *>(*userMsgClass);
1.18 #endif
1.19 + #ifdef OS_WIN32
1.20 + } else if (vcmp(vfunc, MSGCLASS3_SIG, MSGCLASS3_SIGLEN)) {
1.21 + /* Get address of CUserMessages instance */
1.22 + char **userMsgClass = *reinterpret_cast<char ***>(vfunc + MSGCLASS3_OFFS);
1.23 +
1.24 + /* Get address of CUserMessages::m_UserMessages */
1.25 + dict = reinterpret_cast<UserMsgDict *>(*userMsgClass);
1.26 + #endif
1.27 }
1.28
1.29 if (dict)
2.1 --- a/sourcemm/ISmmAPI.h Mon May 07 18:54:30 2007 +0000
2.2 +++ b/sourcemm/ISmmAPI.h Fri May 11 19:14:21 2007 +0000
2.3 @@ -205,7 +205,7 @@
2.4 */
2.5 virtual int FormatIface(char iface[], unsigned int maxlength) =0;
2.6
2.7 -public: // Added in 1.2 (1:2)
2.8 +public: // Added in 1.2.0 (1:2)
2.9 /**
2.10 * @brief Searches for an interface for you.
2.11 *
2.12 @@ -245,7 +245,7 @@
2.13 */
2.14 virtual void ClientConPrintf(edict_t *client, const char *fmt, ...) =0;
2.15
2.16 -public: // Added in 1.3 (1:4)
2.17 +public: // Added in 1.3.0 (1:4)
2.18 /**
2.19 * @brief Wrapper around InterfaceSearch(). Assumes no maximum.
2.20 * This is designed to replace the fact that searches only went upwards.
2.21 @@ -262,7 +262,7 @@
2.22 */
2.23 virtual void *VInterfaceMatch(CreateInterfaceFn fn, const char *iface, int min=-1) =0;
2.24
2.25 -public: // Added in 1.4 (1:5)
2.26 +public: // Added in 1.4.0 (1:5)
2.27 /**
2.28 * @brief Tells SourceMM to add VSP hooking capability to plugins.
2.29 *
2.30 @@ -303,7 +303,7 @@
2.31 * @return Message name, or NULL on failure.
2.32 */
2.33 virtual const char *GetUserMessage(int index, int *size=NULL) =0;
2.34 -public: // Added in 1.4.1 (1:6)
2.35 +public: // Added in 1.5.0 (1:6)
2.36 /**
2.37 * @brief Returns the highest interface version of IServerPluginCallbacks that the engine supports.
2.38 * This is useful for games that run on older versions of the Source engine, such as The Ship.
2.39 @@ -320,11 +320,11 @@
2.40 *
2.41 * 1.1.0 Bumped API to 1:0. The breaking changes occurred in SourceHook and the plugin API.
2.42 * 1.1.2 Added API call for generating iface names.
2.43 - * 1.2 Added API more helper functions and new SourceHook version.
2.44 + * 1.2.0 Added API more helper functions and new SourceHook version.
2.45 * 1.2.2 Added API for printing to client console (with string formatting).
2.46 - * 1.3 Added new interface search API.
2.47 - * 1.4 Added VSP listener and user message API.
2.48 - * 1.4.1 Added API for getting highest supported version of IServerPluginCallbacks.
2.49 + * 1.3.0 Added new interface search API.
2.50 + * 1.4.0 Added VSP listener and user message API.
2.51 + * 1.5.0 Added API for getting highest supported version of IServerPluginCallbacks.
2.52 */
2.53
2.54 #endif //_INCLUDE_ISMM_API_H
3.1 --- a/sourcemm/changelog.txt Mon May 07 18:54:30 2007 +0000
3.2 +++ b/sourcemm/changelog.txt Fri May 11 19:14:21 2007 +0000
3.3 @@ -1,7 +1,8 @@
3.4 -2007/??/?? 1.4.1:
3.5 +2007/??/?? 1.5.0:
3.6 - Added API for getting highest supported IServerPluginCallbacks interface version.
3.7 - The client version of the "meta" command should now work on games that use
3.8 ServerGameClients004 and beyond.
3.9 + - Fixed amb277 (failed to get user message list in Kreezd Climbing).
3.10
3.11 2007/04/05 1.4.0:
3.12 - Added API functions for retrieving User Message info without potentially crashing.