diff options
author | sr55 <[email protected]> | 2012-03-24 16:17:04 +0000 |
---|---|---|
committer | sr55 <[email protected]> | 2012-03-24 16:17:04 +0000 |
commit | 1befa4f1a72a9e8b0277b4ff04b0200dd884f6bc (patch) | |
tree | da3b0dbfd3c474dc8075b569a9d688051c70ca91 /win/CS/HandBrake.ApplicationServices/Services | |
parent | 1732654a808c3b0326dd475217abbbe6908cc015 (diff) |
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
Diffstat (limited to 'win/CS/HandBrake.ApplicationServices/Services')
-rw-r--r-- | win/CS/HandBrake.ApplicationServices/Services/PresetService.cs | 6 |
1 files changed, 6 insertions, 0 deletions
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());
|