diff options
| author | Felix Domke <tmbinc@elitedvb.net> | 2004-10-01 13:21:35 +0000 |
|---|---|---|
| committer | Felix Domke <tmbinc@elitedvb.net> | 2004-10-01 13:21:35 +0000 |
| commit | ddc3964ed95d01e72229dc9af968a327cd84e56c (patch) | |
| tree | 93e6694c639db3d188f5b2868f6b2b2951d21d60 /lib/base/econfig.cpp | |
| parent | 1aeefd997cc362c3b37c1587c5f08891b35c3a75 (diff) | |
| download | enigma2-ddc3964ed95d01e72229dc9af968a327cd84e56c.tar.gz enigma2-ddc3964ed95d01e72229dc9af968a327cd84e56c.zip | |
- add python, missing gui
- remove console (needs to be rewritten anyway)
- eString -> std::string
Diffstat (limited to 'lib/base/econfig.cpp')
| -rw-r--r-- | lib/base/econfig.cpp | 43 |
1 files changed, 0 insertions, 43 deletions
diff --git a/lib/base/econfig.cpp b/lib/base/econfig.cpp index 3d51255b..e69de29b 100644 --- a/lib/base/econfig.cpp +++ b/lib/base/econfig.cpp @@ -1,43 +0,0 @@ -#include <lib/base/eerror.h> -#include <lib/base/econfig.h> -#include <lib/base/init.h> -#include <lib/base/init_num.h> -#include <sys/stat.h> - -eConfig *eConfig::instance; - -eConfig::eConfig() -{ - if (!instance) - instance=this; - - setName(CONFIGDIR "/enigma/registry"); - int e=open(); - if (e == NC_ERR_CORRUPT) - { - eWarning("CORRUTPED REGISTRY!"); - ::remove(CONFIGDIR "/enigma/registry"); - } - if (e) - { - if (createNew()) - { - mkdir(CONFIGDIR "/enigma", 0777); - if (createNew()) - eFatal("error while opening/creating registry - create " CONFIGDIR "/enigma"); - } - if (open()) - eFatal("still can't open configfile"); - } - locked=1; - ppin=0; - getKey("/elitedvb/pins/parentallock", ppin ); -} - -eConfig::~eConfig() -{ - if (instance==this) - instance=0; -} - -eAutoInitP0<eConfig> init_eRCConfig(eAutoInitNumbers::configuration, "Configuration"); |
