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:
@@ -142,5 +142,7 @@ BOOLEAN res_IsBoolean (const char *key);
|
|||||||
BOOLEAN res_GetBoolean (const char *key);
|
BOOLEAN res_GetBoolean (const char *key);
|
||||||
void res_PutBoolean (const char *key, BOOLEAN value);
|
void res_PutBoolean (const char *key, BOOLEAN value);
|
||||||
|
|
||||||
|
BOOLEAN res_Remove (const char *key);
|
||||||
|
|
||||||
#endif /* _RESLIB_H */
|
#endif /* _RESLIB_H */
|
||||||
|
|
||||||
|
|||||||
@@ -42,6 +42,12 @@ res_ClearTables (void)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
BOOLEAN
|
||||||
|
res_Remove (const char *key)
|
||||||
|
{
|
||||||
|
return (Alist_RemoveString (map, key) != NULL);
|
||||||
|
}
|
||||||
|
|
||||||
/* Type conversion routines. */
|
/* Type conversion routines. */
|
||||||
static const char *
|
static const char *
|
||||||
bool2str (BOOLEAN b)
|
bool2str (BOOLEAN b)
|
||||||
|
|||||||
Reference in New Issue
Block a user