Skip to content

Commit ac9deef

Browse files
committed
Fix | Config
1 parent a092a56 commit ac9deef

2 files changed

Lines changed: 15 additions & 2 deletions

File tree

ShadowPluginLoader.WinUI/Config/BaseSdkConfig.cs

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
using Windows.Storage;
1+
using System.IO;
2+
using Windows.Storage;
23
using ShadowObservableConfig.Attributes;
34
using ShadowPluginLoader.WinUI.Enums;
45

@@ -32,6 +33,18 @@ public partial class BaseSdkConfig
3233
/// </summary>
3334
public string TempFolderPath => System.IO.Path.Combine(StaticValues.BaseFolder, _tempFolder);
3435

36+
partial void AfterConfigInit()
37+
{
38+
if (!Directory.Exists(PluginFolderPath))
39+
{
40+
Directory.CreateDirectory(PluginFolderPath);
41+
}
42+
if (!Directory.Exists(TempFolderPath))
43+
{
44+
Directory.CreateDirectory(TempFolderPath);
45+
}
46+
}
47+
3548
/// <summary>
3649
///
3750
/// </summary>

ShadowPluginLoader.WinUI/ShadowPluginLoader.WinUI.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
1414
<LangVersion>preview</LangVersion>
1515
<!-- Nuget -->
16-
<Version>3.1.0</Version>
16+
<Version>3.1.1</Version>
1717
<PackageId>ShadowPluginLoader.WinUI</PackageId>
1818
<Owner>kitUIN</Owner>
1919
<Authors>kitUIN</Authors>

0 commit comments

Comments
 (0)