From 245ba001b2b333b7d18ef7480a65fafab92b317d Mon Sep 17 00:00:00 2001 From: Nicholas Hastings Date: Sat, 28 Oct 2017 09:31:48 -0400 Subject: [PATCH] Bad shim to UtlBuffer::GetString for compat with other SDKs. --- public/tier1/utlbuffer.h | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/public/tier1/utlbuffer.h b/public/tier1/utlbuffer.h index 044a606c..dcfa4bc8 100644 --- a/public/tier1/utlbuffer.h +++ b/public/tier1/utlbuffer.h @@ -193,7 +193,14 @@ public: { GetStringInternal( pString, maxLenInChars ); } - + + // BAD AlliedModders shim for compat with other SDKs + void GetString( char *pString, size_t maxLenInChars ) + { + GetStringManualCharCount( pString, maxLenInChars ); + } + // + void GetStringManualCharCount( char *pString, size_t maxLenInChars ) { GetStringInternal( pString, maxLenInChars );