Skip to content

Commit

Permalink
updated Playnite code
Browse files Browse the repository at this point in the history
  • Loading branch information
Lacro59 committed Oct 18, 2021
1 parent 24742ad commit ae0d6eb
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
8 changes: 4 additions & 4 deletions source/Services/ThemeClass.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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
{
Expand Down Expand Up @@ -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);
}
Expand Down
2 changes: 1 addition & 1 deletion source/ThemeModifier.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion source/Views/ThemeModifierSettingsView.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -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}">

Expand Down
2 changes: 1 addition & 1 deletion source/playnite-plugincommon

0 comments on commit ae0d6eb

Please sign in to comment.