mirror of
https://github.com/microsoft/PowerToys.git
synced 2024-12-14 11:39:16 +08:00
dc3b01dc15
1. Fix can't find Result.ctor bug for plugin introduced in c0889de1f9ae460b2cc189eb59e5bd90ddb7d17e 2. use %APPDATA% for all data, part of #389 3. MISC
20 lines
566 B
C#
20 lines
566 B
C#
using System.IO;
|
|
|
|
namespace Wox.Infrastructure.Storage
|
|
{
|
|
public class PluginJsonStorage<T> :JsonStrorage<T> where T : new()
|
|
{
|
|
public PluginJsonStorage()
|
|
{
|
|
DirectoryName = "Plugins";
|
|
|
|
// C# releated, add python releated below
|
|
var assemblyName = DataType.Assembly.GetName().Name;
|
|
DirectoryPath = Path.Combine(DirectoryPath, DirectoryName, assemblyName);
|
|
FilePath = Path.Combine(DirectoryPath, FileName + FileSuffix);
|
|
|
|
ValidateDirectory();
|
|
}
|
|
}
|
|
}
|