|
a/src/main.cxx |
|
b/src/main.cxx |
|
... |
|
... |
158 |
|
158 |
|
159 |
// Global
|
159 |
// Global
|
160 |
string g_configfilename;
|
160 |
string g_configfilename;
|
161 |
ConfSimple *g_config;
|
161 |
ConfSimple *g_config;
|
162 |
bool g_enableL16 = false;
|
162 |
bool g_enableL16 = false;
|
163 |
bool g_lumincompat = true;
|
163 |
bool g_lumincompat = false;
|
164 |
|
164 |
|
165 |
static void onsig(int)
|
165 |
static void onsig(int)
|
166 |
{
|
166 |
{
|
167 |
LOGDEB("Got sig" << endl);
|
167 |
LOGDEB("Got sig" << endl);
|
168 |
dev->shouldExit();
|
168 |
dev->shouldExit();
|
|
... |
|
... |
413 |
|
413 |
|
414 |
g_config->get("scsenderpath", senderpath);
|
414 |
g_config->get("scsenderpath", senderpath);
|
415 |
if (g_config->get("scsendermpdport", value))
|
415 |
if (g_config->get("scsendermpdport", value))
|
416 |
sendermpdport = atoi(value.c_str());
|
416 |
sendermpdport = atoi(value.c_str());
|
417 |
|
417 |
|
418 |
g_lumincompat = configBool(g_config, "lumincompat", true);
|
418 |
g_lumincompat = configBool(g_config, "lumincompat", false);
|
419 |
} else {
|
419 |
} else {
|
420 |
// g_configfilename is empty. Create an empty config anyway
|
420 |
// g_configfilename is empty. Create an empty config anyway
|
421 |
g_config = new ConfSimple(string(), 1, true);
|
421 |
g_config = new ConfSimple(string(), 1, true);
|
422 |
if (!g_config || !g_config->ok()) {
|
422 |
if (!g_config || !g_config->ok()) {
|
423 |
cerr << "Could not create empty config\n";
|
423 |
cerr << "Could not create empty config\n";
|