Skip to content

Commit

Permalink
Allow empty string (for "recent") in MainForm.SanitiseForFileDialog
Browse files Browse the repository at this point in the history
fixes 1cee9df
  • Loading branch information
YoshiRulz committed Jan 19, 2025
1 parent 8310e54 commit 4c3ea14
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/BizHawk.Client.EmuHawk/MainForm.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4494,7 +4494,7 @@ private bool Rewind(ref bool runFrame, long currentTimestamp, out bool returnToR

private static string SanitiseForFileDialog(string initDir)
{
if (Directory.Exists(initDir)) return initDir;
if (initDir.Length is 0 || Directory.Exists(initDir)) return initDir;
#if DEBUG
throw new ArgumentException(
paramName: nameof(initDir),
Expand Down

0 comments on commit 4c3ea14

Please sign in to comment.