Important Update:
- JSON config: - Move Name, Definition & AddressList under "application" object
This commit is contained in:
@@ -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 )) {
|
||||
|
||||
Reference in New Issue
Block a user