mirror of
https://github.com/RGBCube/serenity
synced 2025-06-10 16:02:08 +00:00
CConfigFile: Implement write_bool_entry
This commit is contained in:
parent
070a2f8980
commit
d2b6f79835
1 changed files with 4 additions and 0 deletions
|
@ -150,6 +150,10 @@ void CConfigFile::write_num_entry(const String& group, const String& key, int va
|
|||
{
|
||||
write_entry(group, key, String::format("%d", value));
|
||||
}
|
||||
void CConfigFile::write_bool_entry(const String& group, const String& key, bool value)
|
||||
{
|
||||
write_entry(group, key, value ? "1" : "0");
|
||||
}
|
||||
void CConfigFile::write_color_entry(const String& group, const String& key, Color value)
|
||||
{
|
||||
write_entry(group, key, String::format("%d,%d,%d,%d", value.red(), value.green(), value.blue(), value.alpha()));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue