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 diff
     1.1 --- a/api/AbstractWarFoundryLoader.cs	Mon Jan 24 16:51:29 2011 +0000
     1.2 +++ b/api/AbstractWarFoundryLoader.cs	Tue Jan 25 21:03:35 2011 +0000
     1.3 @@ -209,6 +209,11 @@
     1.4  					}
     1.5  				}
     1.6  			}
     1.7 +			
     1.8 +			foreach (DirectoryInfo subdir in directory.GetDirectories())
     1.9 +			{
    1.10 +				fails.AddRange(FillLoadableFilesForDirectory(loadableRaces, loadableGameSystems, subdir));
    1.11 +			}
    1.12  
    1.13  			return fails;
    1.14  		}