From: Holger Schemel Date: Sun, 13 Dec 2020 19:49:46 +0000 (+0100) Subject: added function to remove entry from hash X-Git-Tag: 4.2.1.0~59 X-Git-Url: https://git.artsoft.org/?a=commitdiff_plain;h=a95e7a3562b779701e475e6372a90189983b0b7b;p=rocksndiamonds.git added function to remove entry from hash --- diff --git a/src/files.c b/src/files.c index 1b3016a3..0de6f338 100644 --- a/src/files.c +++ b/src/files.c @@ -9484,6 +9484,14 @@ void setHideSetupEntry(void *setup_value) setHashEntry(hide_setup_hash, hide_setup_token, ""); } +void removeHideSetupEntry(void *setup_value) +{ + char *hide_setup_token = getHideSetupToken(setup_value); + + if (setup_value != NULL) + removeHashEntry(hide_setup_hash, hide_setup_token); +} + boolean hideSetupEntry(void *setup_value) { char *hide_setup_token = getHideSetupToken(setup_value); diff --git a/src/files.h b/src/files.h index e324404b..bf0df60c 100644 --- a/src/files.h +++ b/src/files.h @@ -74,6 +74,7 @@ void SaveSetup_EditorCascade(void); void SaveSetup_AddGameControllerMapping(char *); void setHideSetupEntry(void *); +void removeHideSetupEntry(void *); boolean hideSetupEntry(void *); void LoadCustomElementDescriptions(void);