diff options
author | lloyd <[email protected]> | 2006-07-01 21:09:54 +0000 |
---|---|---|
committer | lloyd <[email protected]> | 2006-07-01 21:09:54 +0000 |
commit | 6d3a4de1efcb6b04a1ab87037d487f979d7ca445 (patch) | |
tree | 02342b193a3808d2010b441480f65aa45a23dc92 /src/init_def.cpp | |
parent | 3d1d14cf405111e30643cf4c7674d441cc07a2e0 (diff) |
Access the global configuration through an object reference instead
of stand-alone functions. Store the configuration in a distinct
object, rather than just a map inside the library state.
Diffstat (limited to 'src/init_def.cpp')
-rw-r--r-- | src/init_def.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/init_def.cpp b/src/init_def.cpp index 38d683dea..513454292 100644 --- a/src/init_def.cpp +++ b/src/init_def.cpp @@ -55,12 +55,13 @@ void initialize(const std::string& arg_string) global_state().load(modules); if(args.config_file() != "") - Config::load(args.config_file(), global_state()); + global_config().load_inifile(args.config_file()); global_state().set_transcoder(new Default_Charset_Transcoder); global_state().set_prng(new ANSI_X931_RNG); - const u32bit min_entropy = Config::get_u32bit("rng/min_entropy"); + const u32bit min_entropy = + global_config().option_as_u32bit("rng/min_entropy"); if(min_entropy != 0 && args.seed_rng()) { |