From 277798a008f974f9500304dd4a4944bcca761225 Mon Sep 17 00:00:00 2001 From: Charl Wentzel Date: Mon, 26 Nov 2018 09:53:00 +0200 Subject: [PATCH] Important Update: - JSON config: - Move Name, Definition & AddressList under "application" object --- ApplicationCore.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ApplicationCore.cpp b/ApplicationCore.cpp index 66c9411..7eef255 100644 --- a/ApplicationCore.cpp +++ b/ApplicationCore.cpp @@ -149,7 +149,7 @@ bool CApplication::LoadConfig() } // Load Application Definition - if (!(DefinitionFile = (char*)Config->GetChStr( "DefinitionFile" ))) { + if (!(DefinitionFile = (char*)Config->GetChStr( "Application/Definition" ))) { if (Log) Log->Message( dlLow, dlLow, "%s: No Application Definition file specified", ProcessName ); return false; } @@ -163,7 +163,7 @@ bool CApplication::LoadConfig() } // Load Address List - if (!(AddressFile = (char*)Config->GetChStr( "AddressFile" ))) { + if (!(AddressFile = (char*)Config->GetChStr( "Application/AddressList" ))) { if (Log) Log->Message( dlLow, dlLow, "%s: No Address List file specified", ProcessName ); } else if (!JSONparser->ReadFromFile( "AddressList", AddressFile )) {