From 6925df21548df27a32715562fa51c1c5a31007d5 Mon Sep 17 00:00:00 2001 From: goyuken Date: Mon, 15 Oct 2012 13:36:06 +0000 Subject: [PATCH] ffmpegwriter and nutwriter: fix pathname select --- BizHawk.MultiClient/AVOut/FFmpegWriter.cs | 7 ++++--- BizHawk.MultiClient/AVOut/NutWriter.cs | 5 +++-- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/BizHawk.MultiClient/AVOut/FFmpegWriter.cs b/BizHawk.MultiClient/AVOut/FFmpegWriter.cs index 3b50dc3ef7..b1c2d8e1d3 100644 --- a/BizHawk.MultiClient/AVOut/FFmpegWriter.cs +++ b/BizHawk.MultiClient/AVOut/FFmpegWriter.cs @@ -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(); diff --git a/BizHawk.MultiClient/AVOut/NutWriter.cs b/BizHawk.MultiClient/AVOut/NutWriter.cs index 74808578f0..f972978278 100644 --- a/BizHawk.MultiClient/AVOut/NutWriter.cs +++ b/BizHawk.MultiClient/AVOut/NutWriter.cs @@ -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(); }