| 396 | } |
| 397 | |
| 398 | bool ini_getbool(struct ini_data *ini, const TCHAR *section, const TCHAR *key, bool *v) |
| 399 | { |
| 400 | TCHAR *s = NULL; |
| 401 | if (!ini_getstring(ini, section, key, &s)) |
| 402 | return false; |
| 403 | if (!_tcsicmp(s, _T("true")) || !_tcsicmp(s, _T("1"))) { |
| 404 | xfree(s); |
| 405 | *v = true; |
| 406 | return true; |
| 407 | } |
| 408 | if (!_tcsicmp(s, _T("false")) || !_tcsicmp(s, _T("0"))) { |
| 409 | xfree(s); |
| 410 | *v = false; |
| 411 | return true; |
| 412 | } |
| 413 | return false; |
| 414 | } |
| 415 | |
| 416 | bool ini_getdata_multi(struct ini_data *ini, const TCHAR *section, const TCHAR *key, uae_u8 **out, int *size, struct ini_context *ctx) |
| 417 | { |
no test coverage detected