From d1f1a88ffdf3888a4a68d2e7e91872c962df544f Mon Sep 17 00:00:00 2001 From: Nicholas Hastings Date: Thu, 24 Mar 2011 09:48:36 -0400 Subject: [PATCH] Mark clientprefs natives as optional when ext not required. (bug 4839, r=fyren). --- plugins/include/clientprefs.inc | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/plugins/include/clientprefs.inc b/plugins/include/clientprefs.inc index a2bf272b..b052c24b 100644 --- a/plugins/include/clientprefs.inc +++ b/plugins/include/clientprefs.inc @@ -1,7 +1,7 @@ /** * vim: set ts=4 : * ============================================================================= - * SourceMod (C)2004-2008 AlliedModders LLC. All rights reserved. + * SourceMod (C)2004-2011 AlliedModders LLC. All rights reserved. * ============================================================================= * * This file is part of the SourceMod/SourcePawn SDK. @@ -252,3 +252,21 @@ public Extension:__ext_clientprefs = required = 0, #endif }; + +#if !defined REQUIRE_EXTENSIONS +public __ext_clientprefs_SetNTVOptional() +{ + MarkNativeAsOptional("RegClientCookie"); + MarkNativeAsOptional("FindClientCookie"); + MarkNativeAsOptional("SetClientCookie"); + MarkNativeAsOptional("GetClientCookie"); + MarkNativeAsOptional("AreClientCookiesCached"); + MarkNativeAsOptional("SetCookiePrefabMenu"); + MarkNativeAsOptional("SetCookieMenuItem"); + MarkNativeAsOptional("ShowCookieMenu"); + MarkNativeAsOptional("GetCookieIterator"); + MarkNativeAsOptional("ReadCookieIterator"); + MarkNativeAsOptional("GetCookieAccess"); + MarkNativeAsOptional("GetClientCookieTime"); +} +#endif