remove redundant directory creation in RecordMovie
added in 5fc78efe85
and no longer necessary since... idk
This commit is contained in:
parent
ec65117fdf
commit
4215ea81a3
|
@ -202,8 +202,7 @@ namespace BizHawk.Client.EmuHawk
|
||||||
var path = MakePath();
|
var path = MakePath();
|
||||||
if (!string.IsNullOrWhiteSpace(path))
|
if (!string.IsNullOrWhiteSpace(path))
|
||||||
{
|
{
|
||||||
var test = new FileInfo(path);
|
if (File.Exists(path))
|
||||||
if (test.Exists)
|
|
||||||
{
|
{
|
||||||
var result = DialogController.ShowMessageBox2($"{path} already exists, overwrite?", "Confirm overwrite", EMsgBoxIcon.Warning, useOKCancel: true);
|
var result = DialogController.ShowMessageBox2($"{path} already exists, overwrite?", "Confirm overwrite", EMsgBoxIcon.Warning, useOKCancel: true);
|
||||||
if (!result)
|
if (!result)
|
||||||
|
@ -215,12 +214,6 @@ namespace BizHawk.Client.EmuHawk
|
||||||
var movieToRecord = _movieSession.Get(path);
|
var movieToRecord = _movieSession.Get(path);
|
||||||
movieToRecord.Author = AuthorBox.Text ?? _config.DefaultAuthor;
|
movieToRecord.Author = AuthorBox.Text ?? _config.DefaultAuthor;
|
||||||
|
|
||||||
var fileInfo = new FileInfo(path);
|
|
||||||
if (!fileInfo.Exists)
|
|
||||||
{
|
|
||||||
Directory.CreateDirectory(fileInfo.DirectoryName);
|
|
||||||
}
|
|
||||||
|
|
||||||
var selectedStartFromValue = StartFromCombo.SelectedItem.ToString();
|
var selectedStartFromValue = StartFromCombo.SelectedItem.ToString();
|
||||||
if (selectedStartFromValue is START_FROM_SAVESTATE && _emulator.HasSavestates())
|
if (selectedStartFromValue is START_FROM_SAVESTATE && _emulator.HasSavestates())
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue