mirror of https://github.com/deavminet/dnetd.git
Fixed argument mismatch, disabled requirement for links json key
This commit is contained in:
parent
ef90f1ba13
commit
1071d11345
|
@ -11,13 +11,13 @@ void main(string[] args)
|
|||
string configFilename;
|
||||
|
||||
/* If there are no arguments */
|
||||
if(!args.length)
|
||||
if(args.length == 1)
|
||||
{
|
||||
/* Use the default file */
|
||||
configFilename = "config.json";
|
||||
}
|
||||
/* If there is one argument */
|
||||
else if(args.length == 1)
|
||||
else if(args.length == 2)
|
||||
{
|
||||
/* use the specified one */
|
||||
configFilename = args[0];
|
||||
|
|
|
@ -46,7 +46,7 @@ public final class DConfig
|
|||
config.generalConfig = DGeneralConfig.getConfig(generalBlock);
|
||||
|
||||
/* Get the `links` block */
|
||||
JSONValue linksBlock = json["links"];
|
||||
//JSONValue linksBlock = json["links"];
|
||||
//config.linksConfig = DLinkConfig.getConfig(linksBlock);
|
||||
}
|
||||
catch(JSONException e)
|
||||
|
|
Loading…
Reference in New Issue