a small and pointless code refactor in the record movie dialog
This commit is contained in:
parent
26ef424bdf
commit
ee93e988bc
|
@ -11,8 +11,7 @@ namespace BizHawk.Client.EmuHawk
|
|||
{
|
||||
public partial class RecordMovie : Form
|
||||
{
|
||||
// TODO
|
||||
// Allow relative paths in record textbox
|
||||
// TODO - Allow relative paths in record textbox
|
||||
public RecordMovie()
|
||||
{
|
||||
InitializeComponent();
|
||||
|
@ -20,12 +19,10 @@ namespace BizHawk.Client.EmuHawk
|
|||
|
||||
private string MakePath()
|
||||
{
|
||||
if (RecordBox.Text.Length == 0)
|
||||
{
|
||||
return string.Empty;
|
||||
}
|
||||
|
||||
var path = RecordBox.Text;
|
||||
|
||||
if (!string.IsNullOrWhiteSpace(path))
|
||||
{
|
||||
if (path.LastIndexOf(Path.DirectorySeparatorChar) == -1)
|
||||
{
|
||||
if (path[0] != Path.DirectorySeparatorChar)
|
||||
|
@ -40,6 +37,7 @@ namespace BizHawk.Client.EmuHawk
|
|||
path += "." + Global.MovieSession.Movie.PreferredExtension;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return path;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue