From c5397191e538b27113e579c49b169eb13e8ba640 Mon Sep 17 00:00:00 2001 From: Alibek Omarov Date: Thu, 13 Feb 2025 20:55:49 +0300 Subject: [PATCH] engine: client: touch: limit usage of touch_set_stroke and touch_setclientonly only for privileged mode --- engine/client/in_touch.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/engine/client/in_touch.c b/engine/client/in_touch.c index 971ee5fb..072cdad3 100644 --- a/engine/client/in_touch.c +++ b/engine/client/in_touch.c @@ -1130,8 +1130,8 @@ void Touch_Init( void ) Cmd_AddRestrictedCommand( "touch_loaddefaults", Touch_LoadDefaults_f, "generate config from defaults" ); Cmd_AddRestrictedCommand( "touch_roundall", Touch_RoundAll_f, "round all buttons coordinates to grid" ); Cmd_AddRestrictedCommand( "touch_exportconfig", Touch_ExportConfig_f, "export config keeping aspect ratio" ); - Cmd_AddCommand( "touch_set_stroke", Touch_Stroke_f, "set global stroke width and color" ); - Cmd_AddCommand( "touch_setclientonly", Touch_SetClientOnly_f, "when 1, only client buttons are shown" ); + Cmd_AddRestrictedCommand( "touch_set_stroke", Touch_Stroke_f, "set global stroke width and color" ); + Cmd_AddRestrictedCommand( "touch_setclientonly", Touch_SetClientOnly_f, "when 1, only client buttons are shown" ); Cmd_AddRestrictedCommand( "touch_reloadconfig", Touch_ReloadConfig_f, "load config, not saving changes" ); Cmd_AddRestrictedCommand( "touch_writeconfig", Touch_WriteConfig, "save current config" ); Cmd_AddRestrictedCommand( "touch_deleteprofile", Touch_DeleteProfile_f, "delete profile by name" );