mirror of
https://github.com/vcmi/vcmi.git
synced 2025-06-23 00:28:08 +02:00
Reorganization of boost filesystem usage
- Removed (most of) boost filesystem namespace usings - Replaced boost::filesystem::fstream with std::fstream and different constructor that should be available on any plaftorm
This commit is contained in:
@ -37,7 +37,7 @@ void CSaveFile::openNextFile(const boost::filesystem::path &fname)
|
||||
fName = fname;
|
||||
try
|
||||
{
|
||||
sfile = std::make_unique<boost::filesystem::fstream>(fname, std::ios::out | std::ios::binary);
|
||||
sfile = std::make_unique<std::fstream>(fname.c_str(), std::ios::out | std::ios::binary);
|
||||
sfile->exceptions(std::ifstream::failbit | std::ifstream::badbit); //we throw a lot anyway
|
||||
|
||||
if(!(*sfile))
|
||||
|
Reference in New Issue
Block a user