blob: 3b0a6f540dd728d57cd9824c064ce61a66dbd2ab (
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
|
/**
* 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)
{
}
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 return false;
return true;
}
|