blob: 9a3a4a9699d2db96a0f6a0920aa4ce4c6471afca (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
/**
* based on config.c,v 1.1.1.1 2006/02/26 14:11:02 lordjaxom
*
* version by Midas
*
*/
#include "config.h"
#include <stdlib.h>
#include <string.h>
cSetupBlock SetupBlock;
cSetupBlock::cSetupBlock(void):
HideMenuEntry(0),
MessageTimeout(2),
DetectionMethod(0)
{
}
bool cSetupBlock::Parse(const char *Name, const char *Value)
{
if (strcmp(Name, "HideMenuEntry") == 0) HideMenuEntry = atoi(Value);
else if (strcmp(Name, "MessageTimeout") == 0) MessageTimeout = atoi(Value);
else if (strcmp(Name, "DetectionMethod") == 0) DetectionMethod = atoi(Value);
else return false;
return true;
}
|