1
0

Move configuration and logging to local application data

This commit is contained in:
Scott E. Graves
2017-04-20 22:10:08 -05:00
parent d7445d0647
commit eceedb7af5
5 changed files with 26 additions and 12 deletions

View File

@@ -43,6 +43,7 @@ public:
FilePath& SkipRoot();
FilePath& StripToFileName();
bool CreateEmptyFile();
FilePath& Resolve();
public:
FilePath& operator=(const FilePath& filePath);

View File

@@ -94,8 +94,8 @@ const SiaCurrency SIA_DEFAULT_MINIMUM_FUNDS = 4000;
const std::uint32_t SIA_DEFAULT_CONTRACT_LENGTH = SIA_BLOCKS_PER_MONTH * 3;
const std::uint32_t SIA_DEFAULT_RENEW_WINDOW = SIA_DEFAULT_CONTRACT_LENGTH / 3;
#define DEFAULT_CONFIG_FILE_PATH L"./config/siadriveconfig.json"
#define DEFAULT_RENTER_DB_FILE_PATH L"./config/renter_upload.db3"
#define DEFAULT_CONFIG_FILE_PATH L"~/siadrive/siadriveconfig.json"
#define DEFAULT_RENTER_DB_FILE_PATH L"~/siadrive/renter_upload.db3"
#define Property(type, name, get_access, set_access) \
private:\