mirror of
				https://github.com/SoftFever/OrcaSlicer.git
				synced 2025-10-30 12:11:15 -06:00 
			
		
		
		
	Hints.cereal file existence check
This commit is contained in:
		
							parent
							
								
									e630332e24
								
							
						
					
					
						commit
						cd4155a890
					
				
					 1 changed files with 6 additions and 1 deletions
				
			
		|  | @ -74,7 +74,12 @@ void write_used_binary(const std::vector<std::string>& ids) | |||
| } | ||||
| void read_used_binary(std::vector<std::string>& ids) | ||||
| { | ||||
| 	boost::filesystem::ifstream file((boost::filesystem::path(data_dir()) / "cache" / "hints.cereal")); | ||||
| 	boost::filesystem::path path(boost::filesystem::path(data_dir()) / "cache" / "hints.cereal"); | ||||
| 	if (!boost::filesystem::exists(path)) { | ||||
| 		BOOST_LOG_TRIVIAL(warning) << "Failed to load to hints.cereal. File does not exists. " << path.string(); | ||||
| 		return; | ||||
| 	} | ||||
| 	boost::filesystem::ifstream file(path); | ||||
| 	cereal::BinaryInputArchive archive(file); | ||||
| 	HintsCerealData cd; | ||||
| 	try | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 David Kocik
						David Kocik