ffmpegwriter and nutwriter: fix pathname select

This commit is contained in:
goyuken 2012-10-15 13:36:06 +00:00
parent 50b6a36661
commit 6925df2154
2 changed files with 7 additions and 5 deletions

View File

@ -58,10 +58,11 @@ namespace BizHawk.MultiClient
public void OpenFile(string baseName)
{
string s = System.IO.Path.GetFileNameWithoutExtension(baseName);
ext = System.IO.Path.GetExtension(baseName);
this.baseName = System.IO.Path.Combine(
System.IO.Path.GetDirectoryName(baseName),
System.IO.Path.GetFileNameWithoutExtension(baseName));
this.baseName = s;
this.ext = System.IO.Path.GetExtension(baseName);
segment = 0;
OpenFileSegment();

View File

@ -41,10 +41,11 @@ namespace BizHawk.MultiClient
public void OpenFile(string baseName)
{
this.baseName = System.IO.Path.GetFileNameWithoutExtension(baseName);
this.baseName = System.IO.Path.Combine(
System.IO.Path.GetDirectoryName(baseName),
System.IO.Path.GetFileNameWithoutExtension(baseName));
segment = 0;
startsegment();
}