From 540a3ffe4a9be39c346973e1f958c02398ce3f8a Mon Sep 17 00:00:00 2001 From: Ian C Date: Sun, 24 Apr 2005 01:44:23 +0000 Subject: Initial working version --- groupexplode/config.cpp | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'groupexplode/config.cpp') diff --git a/groupexplode/config.cpp b/groupexplode/config.cpp index 59f87f0..740fd9d 100644 --- a/groupexplode/config.cpp +++ b/groupexplode/config.cpp @@ -27,6 +27,7 @@ bool Config::m_init=false; bool Config::m_rmOrig=false; +bool Config::m_collate=false; void Config::Load() { @@ -35,12 +36,14 @@ void Config::Load() m_init=true; m_rmOrig=false; + m_collate=true; #if REGISTRY_USAGE!=0 W32DLib::Registry r(HKEY_CURRENT_USER,KEY); r.Read("RemoveOriginal",m_rmOrig); + r.Read("Collate",m_collate); #endif @@ -54,9 +57,13 @@ void Config::Save() W32DLib::Registry r(HKEY_CURRENT_USER,KEY,REGISTRY_USAGE==2); r.Write("RemoveOriginal",m_rmOrig); + r.Write("Collate",m_collate); #endif } bool Config::RemoveOriginal() {return m_rmOrig;} void Config::RemoveOriginal(bool flag) {m_rmOrig=flag;} + +bool Config::Collate() {return m_collate;} +void Config::Collate(bool flag) {m_collate=flag;} -- cgit v1.2.3