diff FrmMainWindow.cs @ 158:6b4cc1fc3f42

Re #417: Improve WarFoundry installation experience * Make use of new library call to add data files
author IBBoard <dev@ibboard.co.uk>
date Sat, 19 May 2012 14:39:10 +0100
parents 2d1dd73a3289
children 89e2442bbb60
line wrap: on
line diff
--- a/FrmMainWindow.cs	Tue May 15 21:00:29 2012 +0100
+++ b/FrmMainWindow.cs	Sat May 19 14:39:10 2012 +0100
@@ -1312,8 +1312,7 @@
 			{
 				foreach (string filePath in filePaths)
 				{
-					string newFilePath = System.IO.Path.Combine(WarFoundryHacks.dataPath, System.IO.Path.GetFileName(filePath));
-					File.Copy(filePath, newFilePath);
+					WarFoundryLoader.AddNewDataFile(filePath);
 				}
 
 				WarFoundryLoader.GetDefault().LoadFiles();