private static string[] GetDemos() { if (!Misc.TryGetRootDirectory(out var rootDirectory)) { throw new ArgumentException("Couldn't get root directory."); } var provider = new DemosParser(Path.Combine(rootDirectory, DemosParser.DemosPath)); var demos = provider.Demos.Select(x => x.Path); return(demos.ToArray()); }
private static string[] GetDemos() { string emul8Dir; if (!Misc.TryGetEmul8Directory(out emul8Dir)) { throw new ArgumentException("Couldn't get Emul8 directory."); } var provider = new DemosParser(Path.Combine(emul8Dir, DemosParser.DemosPath)); var demos = provider.Demos.Select(x => x.Path); return(demos.ToArray()); }