mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-03-31 19:20:26 +00:00
fix for previous commit (was using wrong destination path)
This commit is contained in:
parent
ea2feb0aa9
commit
0dff1fb816
@ -2222,15 +2222,15 @@ CSMDoc::Document::Document (const Files::ConfigurationManager& configuration,
|
||||
boost::filesystem::path customFiltersPath (configuration.getUserDataPath());
|
||||
customFiltersPath /= "defaultfilters";
|
||||
|
||||
std::string destinationPath = mProjectPath.string() + "/defaultfilters";
|
||||
std::ofstream dst(destinationPath.c_str(), std::ios::binary);
|
||||
std::ofstream destination (mProjectPath.string().c_str(), std::ios::binary);
|
||||
|
||||
if (boost::filesystem::exists (customFiltersPath))
|
||||
{
|
||||
dst<<std::ifstream(customFiltersPath.c_str(), std::ios::binary).rdbuf();
|
||||
} else
|
||||
destination << std::ifstream(customFiltersPath.c_str(), std::ios::binary).rdbuf();
|
||||
}
|
||||
else
|
||||
{
|
||||
dst<<std::ifstream(std::string(mResDir.string() + "/defaultfilters").c_str(), std::ios::binary).rdbuf();
|
||||
destination << std::ifstream(std::string(mResDir.string() + "/defaultfilters").c_str(), std::ios::binary).rdbuf();
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user