Skip to content
Permalink
Browse files

GsDumpFinder: fix error when dir not found

  • Loading branch information...
AlessandroVetere authored and ssakash committed Jun 25, 2019
1 parent b198041 commit ba2efec983b61ceb6d5df0a2b537fb0beaf59102
Showing with 11 additions and 1 deletion.
  1. +11 −1 tools/GSDumpGUI/Forms/Helper/GsDumpFinder.cs
@@ -38,7 +38,17 @@ public GsDumpFinder(ILogger logger)

public IEnumerable<GsDumpFile> GetValidGsdxDumps(DirectoryInfo directory)
{
var dumps = directory.GetFiles("*.gs", SearchOption.TopDirectoryOnly);
var dumps = new FileInfo[0];

try
{
dumps = directory.GetFiles("*.gs", SearchOption.TopDirectoryOnly);
}
catch (DirectoryNotFoundException)
{
_logger.Warning($"Failed to open folder '{directory}'.");
yield break;
}

foreach (var dump in dumps)
{

0 comments on commit ba2efec

Please sign in to comment.
You can’t perform that action at this time.