From 1befa4f1a72a9e8b0277b4ff04b0200dd884f6bc Mon Sep 17 00:00:00 2001 From: sr55 Date: Sat, 24 Mar 2012 16:17:04 +0000 Subject: WinGui: (WPF) Fixes to the Audio and Subtitle panels. Add pdb's to installer. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@4532 b64f7644-9d1e-0410-96f1-a4d463321fa5 --- win/CS/HandBrake.ApplicationServices/Services/PresetService.cs | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'win/CS/HandBrake.ApplicationServices/Services') diff --git a/win/CS/HandBrake.ApplicationServices/Services/PresetService.cs b/win/CS/HandBrake.ApplicationServices/Services/PresetService.cs index 63d636f5c..bd93dc043 100644 --- a/win/CS/HandBrake.ApplicationServices/Services/PresetService.cs +++ b/win/CS/HandBrake.ApplicationServices/Services/PresetService.cs @@ -485,6 +485,12 @@ namespace HandBrake.ApplicationServices.Services { try { + string directory = Path.GetDirectoryName(this.userPresetFile); + if (!Directory.Exists(directory)) + { + Directory.CreateDirectory(directory); + } + using (FileStream strm = new FileStream(this.builtInPresetFile, FileMode.Create, FileAccess.Write)) { Ser.Serialize(strm, this.presets.Where(p => p.IsBuildIn).ToList()); -- cgit v1.2.3