remove redundant directory creation in RecordMovie

added in 5fc78efe85 and no longer necessary since... idk
This commit is contained in:
Morilli 2025-05-30 22:01:42 +02:00
parent ec65117fdf
commit 4215ea81a3
1 changed files with 1 additions and 8 deletions

View File

@ -202,8 +202,7 @@ namespace BizHawk.Client.EmuHawk
var path = MakePath();
if (!string.IsNullOrWhiteSpace(path))
{
var test = new FileInfo(path);
if (test.Exists)
if (File.Exists(path))
{
var result = DialogController.ShowMessageBox2($"{path} already exists, overwrite?", "Confirm overwrite", EMsgBoxIcon.Warning, useOKCancel: true);
if (!result)
@ -215,12 +214,6 @@ namespace BizHawk.Client.EmuHawk
var movieToRecord = _movieSession.Get(path);
movieToRecord.Author = AuthorBox.Text ?? _config.DefaultAuthor;
var fileInfo = new FileInfo(path);
if (!fileInfo.Exists)
{
Directory.CreateDirectory(fileInfo.DirectoryName);
}
var selectedStartFromValue = StartFromCombo.SelectedItem.ToString();
if (selectedStartFromValue is START_FROM_SAVESTATE && _emulator.HasSavestates())
{