mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-19 13:27:35 +02:00
Make GetDataDir return absolute paths
This commit is contained in:
parent
457661f640
commit
f4203de302
4 changed files with 12 additions and 7 deletions
|
|
@ -150,11 +150,12 @@ bool AppInit2(int argc, char* argv[])
|
|||
// If Qt is used, parameters/bitcoin.conf are parsed in qt/bitcoin.cpp's main()
|
||||
#if !defined(QT_GUI)
|
||||
ParseParameters(argc, argv);
|
||||
if (!ReadConfigFile(mapArgs, mapMultiArgs))
|
||||
if (!boost::filesystem::is_directory(GetDataDir(false)))
|
||||
{
|
||||
fprintf(stderr, "Error: Specified directory does not exist\n");
|
||||
Shutdown(NULL);
|
||||
}
|
||||
ReadConfigFile(mapArgs, mapMultiArgs);
|
||||
#endif
|
||||
|
||||
if (mapArgs.count("-?") || mapArgs.count("--help"))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue