diff --git a/mediaportal/Core/guilib/TexturePacker.cs b/mediaportal/Core/guilib/TexturePacker.cs index a3addd83f2b..4be0e2bdd56 100644 --- a/mediaportal/Core/guilib/TexturePacker.cs +++ b/mediaportal/Core/guilib/TexturePacker.cs @@ -352,17 +352,45 @@ public void PackSkinGraphics(string skinName) Log.Debug("TexurePacker:PackSkinGraphics: {0}", ex.Message); } - string[] tvLogos = Directory.GetFiles(Config.GetSubFolder(Config.Dir.Thumbs, @"tv\logos"), "*.png", SearchOption.AllDirectories); - files.AddRange(tvLogos); - - string[] radioLogos = Directory.GetFiles(Config.GetSubFolder(Config.Dir.Thumbs, "Radio"), "*.png", SearchOption.AllDirectories); - files.AddRange(radioLogos); + try + { + string[] tvLogos = Directory.GetFiles(Config.GetSubFolder(Config.Dir.Thumbs, @"tv\logos"), "*.png", SearchOption.AllDirectories); + files.AddRange(tvLogos); + } + catch (DirectoryNotFoundException) + { + Log.Warn("TexturePacker: Folder not found: " + Config.GetSubFolder(Config.Dir.Thumbs, @"tv\logos")); + } - string[] weatherFiles = Directory.GetFiles(String.Format(@"{0}\media\weather", skinName), "*.png"); - files.AddRange(weatherFiles); + try + { + string[] radioLogos = Directory.GetFiles(Config.GetSubFolder(Config.Dir.Thumbs, "Radio"), "*.png", SearchOption.AllDirectories); + files.AddRange(radioLogos); + } + catch (DirectoryNotFoundException) + { + Log.Warn("TexturePacker: Folder not found: " + Config.GetSubFolder(Config.Dir.Thumbs, "Radio")); + } - string[] tetrisFiles = Directory.GetFiles(String.Format(@"{0}\media\tetris", skinName), "*.png"); - files.AddRange(tetrisFiles); + try + { + string[] weatherFiles = Directory.GetFiles(String.Format(@"{0}\media\weather", skinName), "*.png"); + files.AddRange(weatherFiles); + } + catch (DirectoryNotFoundException) + { + Log.Warn("TexturePacker: Folder not found: " + String.Format(@"{0}\media\weather", skinName)); + } + + try + { + string[] tetrisFiles = Directory.GetFiles(String.Format(@"{0}\media\tetris", skinName), "*.png"); + files.AddRange(tetrisFiles); + } + catch (DirectoryNotFoundException) + { + Log.Warn("TexturePacker: Folder not found: " + String.Format(@"{0}\media\tetris", skinName)); + } // Determine maximum texture dimensions try diff --git a/mediaportal/MediaPortal.Application/MediaPortal.cs b/mediaportal/MediaPortal.Application/MediaPortal.cs index db1b368bd88..18889b31d84 100644 --- a/mediaportal/MediaPortal.Application/MediaPortal.cs +++ b/mediaportal/MediaPortal.Application/MediaPortal.cs @@ -3661,7 +3661,8 @@ protected override void InitializeDeviceObjects() catch (Exception exs) { // ReSharper disable LocalizableElement - MessageBox.Show(String.Format("Failed to load your skin! Aborting startup...\n\n{0}", exs.Message), "Critical error", MessageBoxButtons.OK, MessageBoxIcon.Stop); + // MessageBox.Show(String.Format("Failed to load your skin! Aborting startup...\n\n{0}", exs.Message), "Critical error", MessageBoxButtons.OK, MessageBoxIcon.Stop); + Log.Error("Startup: Failed to Caching Graphics! {0}", exs.Message); // ReSharper restore LocalizableElement Close(); }