|
|
@ -12,8 +12,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
namespace llarp
|
|
|
|
namespace llarp
|
|
|
|
{
|
|
|
|
{
|
|
|
|
Context::Context(std::ostream &o, bool singleThread)
|
|
|
|
Context::Context(bool singleThread)
|
|
|
|
: singleThreaded(singleThread), out(o)
|
|
|
|
: singleThreaded(singleThread), out(std::cout)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
llarp::LogInfo(LLARP_VERSION, " ", LLARP_RELEASE_MOTTO);
|
|
|
|
llarp::LogInfo(LLARP_VERSION, " ", LLARP_RELEASE_MOTTO);
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -311,7 +311,7 @@ llarp_main_init(const char *fname, bool multiProcess)
|
|
|
|
cSetLogLevel(eLogDebug);
|
|
|
|
cSetLogLevel(eLogDebug);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
llarp_main *m = new llarp_main;
|
|
|
|
llarp_main *m = new llarp_main;
|
|
|
|
m->ctx.reset(new llarp::Context(std::cout, !multiProcess));
|
|
|
|
m->ctx.reset(new llarp::Context(!multiProcess));
|
|
|
|
if(!m->ctx->LoadConfig(fname))
|
|
|
|
if(!m->ctx->LoadConfig(fname))
|
|
|
|
{
|
|
|
|
{
|
|
|
|
m->ctx->Close();
|
|
|
|
m->ctx->Close();
|
|
|
|