MCPcopy Create free account
hub / github.com/Inori/GPCS4 / BoolFromOptionValue

Function BoolFromOptionValue

3rdParty/tinydbr/common.cpp:150–155  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

148#if 0
149
150bool BoolFromOptionValue(char *value) {
151 if (_stricmp(value, "off") == 0) return false;
152 if (_stricmp(value, "false") == 0) return false;
153 if (_stricmp(value, "0") == 0) return false;
154 return true;
155}
156
157bool GetBinaryOption(const char *name, int argc, char** argv, bool default_value) {
158 for (int i = 0; i < argc; i++) {

Callers 1

GetBinaryOptionFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected