added function to remove entry from hash
authorHolger Schemel <info@artsoft.org>
Sun, 13 Dec 2020 19:49:46 +0000 (20:49 +0100)
committerHolger Schemel <info@artsoft.org>
Sun, 13 Dec 2020 19:49:46 +0000 (20:49 +0100)
src/files.c
src/files.h

index 1b3016a324874a410715d1b53c30f2de8601901b..0de6f338d4bf705bbfb953a796e2376291495229 100644 (file)
@@ -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);
index e324404b36da0739bd41f6ce34fe9b105d77bca4..bf0df60cc16ac199ce641647ca8f2f7d8db4c88c 100644 (file)
@@ -74,6 +74,7 @@ void SaveSetup_EditorCascade(void);
 void SaveSetup_AddGameControllerMapping(char *);
 
 void setHideSetupEntry(void *);
+void removeHideSetupEntry(void *);
 boolean hideSetupEntry(void *);
 
 void LoadCustomElementDescriptions(void);