diff API/AbstractWarFoundryLoader.cs @ 443:86725e88052e

Re #380: WarFoundry chokes on zips written by Mac OS X * Add "is dot-file" check to behave like Linux and Mac and ignore files with name ".something" Also: * Fix load failure message argument order * Save some regex checks by making sure zip entry is a file first
author IBBoard <dev@ibboard.co.uk>
date Sun, 04 Dec 2011 20:40:31 +0000
parents 71fceea2725b
children cbeee87dc2d3
line wrap: on
line diff
--- a/API/AbstractWarFoundryLoader.cs	Sat Dec 03 20:10:13 2011 +0000
+++ b/API/AbstractWarFoundryLoader.cs	Sun Dec 04 20:40:31 2011 +0000
@@ -298,7 +298,7 @@
 	
 					if (!loaded)
 					{
-						failure = new FileLoadFailure(file, "FileLoadFailed", "Failed to load {0} as GameSystem using {1}");
+						failure = new FileLoadFailure(file, "Failed to load \"{0}\" as GameSystem using {1}", "FileLoadFailed");
 					}
 				}
 				catch (Exception ex)
@@ -330,7 +330,7 @@
 	
 					if (!loaded)
 					{
-						failure = new FileLoadFailure(file, "FileLoadFailed", "Failed to load {0} as Race using {1}");
+						failure = new FileLoadFailure(file, "Failed to load {0} as Race using {1}", "FileLoadFailed");
 					}
 				}
 				catch (Exception ex)