Browse Source

fix boost

Laserlicht 11 months ago
parent
commit
10da13729c
1 changed files with 4 additions and 0 deletions
  1. 4 0
      launcher/modManager/chroniclesextractor.cpp

+ 4 - 0
launcher/modManager/chroniclesextractor.cpp

@@ -131,7 +131,11 @@ void ChroniclesExtractor::createBaseMod() const
 		if(boost::filesystem::exists(file))
 		{
 			boost::filesystem::create_directories(destFolder);
+#if BOOST_VERSION >= 107400
 			boost::filesystem::copy_file(file, destFolder / "portraitsChronicles.json", boost::filesystem::copy_options::overwrite_existing);
+#else
+			boost::filesystem::copy_file(file, destFolder / "portraitsChronicles.json", boost::filesystem::copy_option::overwrite_if_exists);
+#endif
 		}
 	}
 }