public Stream OpenInput(string id)
{
Stream s = null;
try
{
s = new FileStream(@"store\" + id, FileMode.Open, FileAccess.Read);
}
catch
{
/* Ignore. Pick this up when s is null in next block. */
}
if (s == null)
{
string[] names = Assembly.GetExecutingAssembly().GetManifestResourceNames();
s = Assembly.GetExecutingAssembly().GetManifestResourceStream(@"SWFProcessing.Swiffotron.Test.res.store." + id);
if (s == null)
{
s = Assembly.GetExecutingAssembly().GetManifestResourceStream(@"SwiffotronTestExpress.res.store." + id);
}
if (s == null)
{
throw new FileNotFoundException(@"Store does not contain " + id);
}
}
return s;
}