comparison 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
comparison
equal deleted inserted replaced
157:2d1dd73a3289 158:6b4cc1fc3f42
1310 1310
1311 if (response == (int)ResponseType.Accept) 1311 if (response == (int)ResponseType.Accept)
1312 { 1312 {
1313 foreach (string filePath in filePaths) 1313 foreach (string filePath in filePaths)
1314 { 1314 {
1315 string newFilePath = System.IO.Path.Combine(WarFoundryHacks.dataPath, System.IO.Path.GetFileName(filePath)); 1315 WarFoundryLoader.AddNewDataFile(filePath);
1316 File.Copy(filePath, newFilePath);
1317 } 1316 }
1318 1317
1319 WarFoundryLoader.GetDefault().LoadFiles(); 1318 WarFoundryLoader.GetDefault().LoadFiles();
1320 } 1319 }
1321 } 1320 }