mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-03-03 12:49:40 +00:00
fix for previous commit (was using wrong destination path)
This commit is contained in:
parent
ea2feb0aa9
commit
0dff1fb816
1 changed files with 6 additions and 6 deletions
|
@ -2221,16 +2221,16 @@ CSMDoc::Document::Document (const Files::ConfigurationManager& configuration,
|
||||||
{
|
{
|
||||||
boost::filesystem::path customFiltersPath (configuration.getUserDataPath());
|
boost::filesystem::path customFiltersPath (configuration.getUserDataPath());
|
||||||
customFiltersPath /= "defaultfilters";
|
customFiltersPath /= "defaultfilters";
|
||||||
|
|
||||||
std::string destinationPath = mProjectPath.string() + "/defaultfilters";
|
std::ofstream destination (mProjectPath.string().c_str(), std::ios::binary);
|
||||||
std::ofstream dst(destinationPath.c_str(), std::ios::binary);
|
|
||||||
|
|
||||||
if (boost::filesystem::exists (customFiltersPath))
|
if (boost::filesystem::exists (customFiltersPath))
|
||||||
{
|
{
|
||||||
dst<<std::ifstream(customFiltersPath.c_str(), std::ios::binary).rdbuf();
|
destination << std::ifstream(customFiltersPath.c_str(), std::ios::binary).rdbuf();
|
||||||
} else
|
}
|
||||||
|
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…
Reference in a new issue