MCPcopy Create free account
hub / github.com/TASEmulators/fceux / boolDecode

Function boolDecode

src/drivers/Qt/input.cpp:2403–2416  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2401}
2402
2403static bool boolDecode(const char *s)
2404{
2405 bool ret = false;
2406
2407 if (isdigit(s[0]))
2408 {
2409 ret = atoi(s) != 0;
2410 }
2411 else if (strcasecmp(s, "true") == 0)
2412 {
2413 ret = true;
2414 }
2415 return ret;
2416}
2417
2418int saveInputSettingsToFile(const char *filename)
2419{

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected