Changeset View
Changeset View
Standalone View
Standalone View
src/util/system.cpp
Show First 20 Lines • Show All 635 Lines • ▼ Show 20 Lines | if (pex) { | ||||
return strprintf("UNKNOWN EXCEPTION \n%s in %s \n", | return strprintf("UNKNOWN EXCEPTION \n%s in %s \n", | ||||
pszModule, pszThread); | pszModule, pszThread); | ||||
} | } | ||||
} | } | ||||
void PrintExceptionContinue(const std::exception *pex, const char *pszThread) { | void PrintExceptionContinue(const std::exception *pex, const char *pszThread) { | ||||
std::string message = FormatException(pex, pszThread); | std::string message = FormatException(pex, pszThread); | ||||
LogPrintf("\n\n************************\n%s\n", message); | LogPrintf("\n\n************************\n%s\n", message); | ||||
tfm::format(std::cerr, "\n\n************************\n%s\n", | tfm::format(std::cerr, "\n\n************************\n%s\n", message); | ||||
message.c_str()); | |||||
} | } | ||||
fs::path GetDefaultDataDir() { | fs::path GetDefaultDataDir() { | ||||
// Windows < Vista: C:\Documents and Settings\Username\Application Data\Bitcoin | // Windows < Vista: C:\Documents and Settings\Username\Application Data\Bitcoin | ||||
// Windows >= Vista: C:\Users\Username\AppData\Roaming\Bitcoin | // Windows >= Vista: C:\Users\Username\AppData\Roaming\Bitcoin | ||||
// Mac: ~/Library/Application Support/Bitcoin | // Mac: ~/Library/Application Support/Bitcoin | ||||
// Unix: ~/.bitcoin | // Unix: ~/.bitcoin | ||||
#ifdef WIN32 | #ifdef WIN32 | ||||
▲ Show 20 Lines • Show All 630 Lines • Show Last 20 Lines |