diff --git a/src/Tkmm.Core/Config.cs b/src/Tkmm.Core/Config.cs index fdf820f2..ea9db80d 100644 --- a/src/Tkmm.Core/Config.cs +++ b/src/Tkmm.Core/Config.cs @@ -1,6 +1,7 @@ using CommunityToolkit.Mvvm.ComponentModel; using ConfigFactory.Core; using ConfigFactory.Core.Attributes; +using Tkmm.Core.Helpers.Operations; namespace Tkmm.Core; @@ -111,6 +112,7 @@ partial void OnThemeChanged(string value) partial void OnUseRyujinxChanged(bool value) { if (Directory.Exists(_ryujinxPath)) { + DirectoryOperations.ClearAttributes(_ryujinxPath); Directory.Delete(_ryujinxPath, true); } @@ -129,6 +131,7 @@ partial void OnUseJapaneseCitrusFruitChanged(bool value) string japaneseCitrusFruitPath = Path.Combine(ReadJapaneseCitrusFruitLoadPath(), "0100F2C0115B6000", "TKMM"); if (Directory.Exists(japaneseCitrusFruitPath)) { + DirectoryOperations.ClearAttributes(japaneseCitrusFruitPath); Directory.Delete(japaneseCitrusFruitPath, true); }