void OTPaths::SetHomeFolder(String strLocation) { OTPaths::s_strHomeFolder = strLocation; #ifdef ANDROID OTPaths::s_settings.SetConfigFilePath(GlobalConfigFile()); #endif }
#define OT_USER_SCRIPTS_DIR "scripts" #define DATA_FOLDER_EXT "_data" #define OT_LIB_DIR "lib" #define OT_CONFIG_ISRELATIVE "_is_relative" #ifdef _WIN32 #define OT_SCRIPTS_DIR "scripts/ot" #else #define OT_SCRIPTS_DIR "lib/opentxs" #endif #include "OTPaths.h" #include "OTLog.h" OTSettings * OTPaths::m_pSettings(new OTSettings(GlobalConfigFile())); OTString OTPaths::m_strAppDataFolder(""); OTString OTPaths::m_strGlobalConfigFile(""); OTString OTPaths::m_strPrefixFolder(""); OTString OTPaths::m_strScriptsFolder(""); OTPaths::~OTPaths() { if (NULL != OTPaths::m_pSettings) delete OTPaths::m_pSettings; OTPaths::m_pSettings = NULL; } const OTString & OTPaths::AppDataFolder() {
void OTPaths::ConfigureDefaultSettings() { if (!s_settings.HasConfigFilePath()) s_settings.SetConfigFilePath(GlobalConfigFile()); }