From ae0d6ebf9a1f3fd53beab4166d4b2cffc627a92f Mon Sep 17 00:00:00 2001 From: Lacro59 Date: Mon, 18 Oct 2021 15:08:01 +0200 Subject: [PATCH] updated Playnite code --- source/Services/ThemeClass.cs | 8 ++++---- source/ThemeModifier.cs | 2 +- source/Views/ThemeModifierSettingsView.xaml | 2 +- source/playnite-plugincommon | 2 +- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/source/Services/ThemeClass.cs b/source/Services/ThemeClass.cs index 72cae06..043c40f 100644 --- a/source/Services/ThemeClass.cs +++ b/source/Services/ThemeClass.cs @@ -15,8 +15,8 @@ using ThemeModifier.Models; using ThemeModifier.Views; using YamlDotNet.Serialization; -using CommonPluginsPlaynite; -using CommonPluginsPlaynite.Common; +using CommonPlayniteShared; +using CommonPlayniteShared.Common; using System.Text.RegularExpressions; using CommonPlayniteShared.Manifests; using System.Text; @@ -1455,7 +1455,7 @@ public static bool SaveThemeColors(ThemeModifierSettingsView settingsView, strin ThemeColors themeColors = new ThemeColors { Name = ThemeName }; string PathThemeColors = Path.Combine(PluginUserDataPath, "ThemeColors"); - string PathThemeColorsFile = PathThemeColorsFile = Path.Combine(PathThemeColors, Paths.GetSafeFilename(ThemeName) + ".json"); + string PathThemeColorsFile = PathThemeColorsFile = Path.Combine(PathThemeColors, Paths.GetSafePathName(ThemeName) + ".json"); try { @@ -1521,7 +1521,7 @@ public static bool SaveThemeColors(ThemeModifierSettingsView settingsView, strin public static bool ThemeFileExist(string ThemeName, string PluginUserDataPath) { string PathThemeColors = Path.Combine(PluginUserDataPath, "ThemeColors"); - string PathThemeColorsFile = PathThemeColorsFile = Path.Combine(PathThemeColors, Paths.GetSafeFilename(ThemeName) + ".json"); + string PathThemeColorsFile = PathThemeColorsFile = Path.Combine(PathThemeColors, Paths.GetSafePathName(ThemeName) + ".json"); return File.Exists(PathThemeColorsFile); } diff --git a/source/ThemeModifier.cs b/source/ThemeModifier.cs index a271b7c..a546ca6 100644 --- a/source/ThemeModifier.cs +++ b/source/ThemeModifier.cs @@ -15,7 +15,7 @@ using ThemeModifier.Models; using ThemeModifier.Services; using ThemeModifier.Views; -using CommonPluginsPlaynite; +using CommonPlayniteShared; using CommonPluginsShared.PlayniteExtended; using CommonPlayniteShared.Manifests; using ThemeModifier.Controls; diff --git a/source/Views/ThemeModifierSettingsView.xaml b/source/Views/ThemeModifierSettingsView.xaml index fb13d03..9028fbd 100644 --- a/source/Views/ThemeModifierSettingsView.xaml +++ b/source/Views/ThemeModifierSettingsView.xaml @@ -7,7 +7,7 @@ xmlns:ThemeModifier="clr-namespace:ThemeModifier" xmlns:pcmd="clr-namespace:CommonPluginsShared" xmlns:AttachedProperties="clr-namespace:CommonPluginsShared.Controls" - xmlns:converters="clr-namespace:CommonPluginsPlaynite.Converters" + xmlns:converters="clr-namespace:CommonPlayniteShared.Converters" mc:Ignorable="d" d:DataContext="{d:DesignInstance ThemeModifier:ThemeModifierSettingsViewModel}"> diff --git a/source/playnite-plugincommon b/source/playnite-plugincommon index 77b229d..f6993a1 160000 --- a/source/playnite-plugincommon +++ b/source/playnite-plugincommon @@ -1 +1 @@ -Subproject commit 77b229d61eb835e7f6023e10cf1fd9499bd1c77d +Subproject commit f6993a18f061ab618f27a0ebaa05e0d93e216a42