mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-04-03 12:25:54 +02:00
Move boost/std fstream to fsbridge
This commit is contained in:
@@ -367,7 +367,7 @@ bool openBitcoinConf()
|
||||
fs::path pathConfig = GetConfigFile(gArgs.GetArg("-conf", BITCOIN_CONF_FILENAME));
|
||||
|
||||
/* Create the file */
|
||||
fs::ofstream configFile(pathConfig, std::ios_base::app);
|
||||
fsbridge::ofstream configFile(pathConfig, std::ios_base::app);
|
||||
|
||||
if (!configFile.good())
|
||||
return false;
|
||||
@@ -611,7 +611,7 @@ fs::path static GetAutostartFilePath()
|
||||
|
||||
bool GetStartOnSystemStartup()
|
||||
{
|
||||
fs::ifstream optionFile(GetAutostartFilePath());
|
||||
fsbridge::ifstream optionFile(GetAutostartFilePath());
|
||||
if (!optionFile.good())
|
||||
return false;
|
||||
// Scan through file for "Hidden=true":
|
||||
@@ -642,7 +642,7 @@ bool SetStartOnSystemStartup(bool fAutoStart)
|
||||
|
||||
fs::create_directories(GetAutostartDir());
|
||||
|
||||
fs::ofstream optionFile(GetAutostartFilePath(), std::ios_base::out|std::ios_base::trunc);
|
||||
fsbridge::ofstream optionFile(GetAutostartFilePath(), std::ios_base::out | std::ios_base::trunc);
|
||||
if (!optionFile.good())
|
||||
return false;
|
||||
std::string chain = gArgs.GetChainName();
|
||||
|
||||
Reference in New Issue
Block a user