mirror of
https://github.com/GOSTSec/gostcoin
synced 2025-01-30 16:34:29 +00:00
setup i2p only by default
This commit is contained in:
parent
82cbad7979
commit
4fe9bd1a72
@ -194,6 +194,10 @@ bool AppInit(int argc, char* argv[])
|
||||
fprintf(stderr, "Error: Specified directory does not exist\n");
|
||||
Shutdown();
|
||||
}
|
||||
if (!boost::filesystem::exists(GetConfigFile().string()))
|
||||
{
|
||||
writeFirstConfig(); // create default config
|
||||
}
|
||||
ReadConfigFile(mapArgs, mapMultiArgs);
|
||||
|
||||
if (mapArgs.count("-?") || mapArgs.count("--help"))
|
||||
|
@ -995,7 +995,7 @@ bool writeConfig(boost::filesystem::path configFile, boost::property_tree::ptree
|
||||
return true;
|
||||
}
|
||||
|
||||
// Used by GUI wizard
|
||||
// call upon first run
|
||||
bool writeFirstConfig()
|
||||
{
|
||||
using boost::property_tree::ptree;
|
||||
|
Loading…
x
Reference in New Issue
Block a user