From d8df53ab68aa2031da1d49a8eb8897aa52ae0b2d Mon Sep 17 00:00:00 2001 From: Midas Date: Thu, 22 Apr 2010 12:49:36 +0200 Subject: Changed source directory structure. --- config.c | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 config.c (limited to 'config.c') diff --git a/config.c b/config.c new file mode 100644 index 0000000..3b0a6f5 --- /dev/null +++ b/config.c @@ -0,0 +1,27 @@ +/** + * based on config.c,v 1.1.1.1 2006/02/26 14:11:02 lordjaxom + * + * version by Midas + * + */ + +#include "config.h" + +#include +#include + +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; +} -- cgit v1.2.3