changeset 302:b24a78cfd314

Re #238: subfolders datafolder * Add support for recursing sub-folders
author IBBoard <dev@ibboard.co.uk>
date Tue, 25 Jan 2011 21:03:35 +0000
parents 4219d79f262f
children bcb22102f048
files api/AbstractWarFoundryLoader.cs
diffstat 1 files changed, 5 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/api/AbstractWarFoundryLoader.cs	Mon Jan 24 16:51:29 2011 +0000
+++ b/api/AbstractWarFoundryLoader.cs	Tue Jan 25 21:03:35 2011 +0000
@@ -209,6 +209,11 @@
 					}
 				}
 			}
+			
+			foreach (DirectoryInfo subdir in directory.GetDirectories())
+			{
+				fails.AddRange(FillLoadableFilesForDirectory(loadableRaces, loadableGameSystems, subdir));
+			}
 
 			return fails;
 		}