Allow removing key/value pairs from the master resource map

git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@2704 8092fc87-c524-0410-9efc-e669fe64eaf9
This commit is contained in:
mcmartin
2007-02-09 05:33:18 +00:00
parent e9089a4498
commit ccc6ddac22
2 changed files with 8 additions and 0 deletions
+2
View File
@@ -142,5 +142,7 @@ BOOLEAN res_IsBoolean (const char *key);
BOOLEAN res_GetBoolean (const char *key);
void res_PutBoolean (const char *key, BOOLEAN value);
BOOLEAN res_Remove (const char *key);
#endif /* _RESLIB_H */
+6
View File
@@ -42,6 +42,12 @@ res_ClearTables (void)
}
}
BOOLEAN
res_Remove (const char *key)
{
return (Alist_RemoveString (map, key) != NULL);
}
/* Type conversion routines. */
static const char *
bool2str (BOOLEAN b)