| 57 | } |
| 58 | |
| 59 | bool read_bool(const string &field, bool def_value) |
| 60 | { |
| 61 | const maybe_bool result = read_maybe_bool(field); |
| 62 | if (result.is_bool()) |
| 63 | return bool(result); |
| 64 | |
| 65 | Options.report_error("Bad boolean: %s (should be true or false)", field.c_str()); |
| 66 | return def_value; |
| 67 | } |
| 68 | |
| 69 | string GameOption::loadFromString(const std::string &, rc_line_type) |
| 70 | { |
no test coverage detected