mirror of
				https://github.com/OpenMW/openmw.git
				synced 2025-10-31 19:56:38 +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()); | ||||
|         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…
	
		Reference in a new issue