MCPcopy Create free account
hub / github.com/BlitterStudio/amiberry / ini_getbool

Function ini_getbool

src/ini.cpp:398–414  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

396}
397
398bool 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
416bool ini_getdata_multi(struct ini_data *ini, const TCHAR *section, const TCHAR *key, uae_u8 **out, int *size, struct ini_context *ctx)
417{

Callers 1

add_ide_unitFunction · 0.85

Calls 1

ini_getstringFunction · 0.85

Tested by

no test coverage detected