summaryrefslogtreecommitdiff
path: root/src/unstable/settings.cpp
diff options
context:
space:
mode:
authorMike Buland <eichlan@xagasoft.com>2012-08-24 23:37:37 +0000
committerMike Buland <eichlan@xagasoft.com>2012-08-24 23:37:37 +0000
commit2ff45ffd1a7ef36369c135090b39528860b25684 (patch)
treed5dfc12b29cb684812bd00b72bc61df2ed618488 /src/unstable/settings.cpp
parent3c38c55a26df5b2d8827b88a99f5bb996c4d13c2 (diff)
downloadlibbu++-2ff45ffd1a7ef36369c135090b39528860b25684.tar.gz
libbu++-2ff45ffd1a7ef36369c135090b39528860b25684.tar.bz2
libbu++-2ff45ffd1a7ef36369c135090b39528860b25684.tar.xz
libbu++-2ff45ffd1a7ef36369c135090b39528860b25684.zip
Ini driver is close, loading isn't working perfectly yet...
Diffstat (limited to 'src/unstable/settings.cpp')
-rw-r--r--src/unstable/settings.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/unstable/settings.cpp b/src/unstable/settings.cpp
index 792aff9..b812b60 100644
--- a/src/unstable/settings.cpp
+++ b/src/unstable/settings.cpp
@@ -2,6 +2,7 @@
2 2
3#include "bu/settingsdrivertaf.h" 3#include "bu/settingsdrivertaf.h"
4#include "bu/settingsdriverregistry.h" 4#include "bu/settingsdriverregistry.h"
5#include "bu/settingsdriverini.h"
5 6
6Bu::Settings::Settings( const Bu::UtfString &sCompany, 7Bu::Settings::Settings( const Bu::UtfString &sCompany,
7 const Bu::UtfString &sProduct, Bu::Settings::Driver eDriver ) : 8 const Bu::UtfString &sProduct, Bu::Settings::Driver eDriver ) :
@@ -15,7 +16,7 @@ Bu::Settings::Settings( const Bu::UtfString &sCompany,
15#if defined( WIN32 ) 16#if defined( WIN32 )
16 pDriver = new Bu::SettingsDriverRegistry(); 17 pDriver = new Bu::SettingsDriverRegistry();
17#else 18#else
18 pDriver = new Bu::SettingsDriverTaf(); 19 pDriver = new Bu::SettingsDriverIni();
19#endif 20#endif
20 break; 21 break;
21 22
@@ -24,7 +25,7 @@ Bu::Settings::Settings( const Bu::UtfString &sCompany,
24 break; 25 break;
25 26
26 case DriverIni: 27 case DriverIni:
27 throw Bu::ExceptionBase("Not supported"); 28 pDriver = new Bu::SettingsDriverIni();
28 break; 29 break;
29 } 30 }
30 31