浏览代码

fix boost

Laserlicht 11 月之前
父节点
当前提交
10da13729c
共有 1 个文件被更改,包括 4 次插入0 次删除
  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
 		}
 	}
 }