Browse Source

setup i2p only by default

pull/16/head
orignal 8 years ago
parent
commit
4fe9bd1a72
  1. 4
      src/init.cpp
  2. 2
      src/util.cpp

4
src/init.cpp

@ -194,6 +194,10 @@ bool AppInit(int argc, char* argv[]) @@ -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"))

2
src/util.cpp

@ -995,7 +995,7 @@ bool writeConfig(boost::filesystem::path configFile, boost::property_tree::ptree @@ -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…
Cancel
Save