From 7610fd83d3debecbc3013d0b353142993255766c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=A7=8B=E6=B0=B4?= <1123993881@qq.com> Date: Fri, 20 Jan 2023 15:24:28 +0800 Subject: [PATCH] feat: add the timeline folder. --- RotationSolver/RotationSolverPlugin.cs | 5 +++++ RotationSolver/SigReplacers/IconReplacer.cs | 2 -- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/RotationSolver/RotationSolverPlugin.cs b/RotationSolver/RotationSolverPlugin.cs index 3c681f9ce..c00c71fcb 100644 --- a/RotationSolver/RotationSolverPlugin.cs +++ b/RotationSolver/RotationSolverPlugin.cs @@ -11,11 +11,13 @@ using RotationSolver.Windows; using RotationSolver.Windows.RotationConfigWindow; using System; +using System.IO; namespace RotationSolver; public sealed class RotationSolverPlugin : IDalamudPlugin, IDisposable { + internal static string TimelineFolder { get; private set; } private readonly WindowSystem windowSystem; @@ -29,6 +31,9 @@ public RotationSolverPlugin(DalamudPluginInterface pluginInterface) Service.Address = new PluginAddressResolver(); Service.Address.Setup(); + TimelineFolder = Path.Combine(pluginInterface.ConfigDirectory.FullName, "Timeline"); + if(!Directory.Exists(TimelineFolder)) Directory.CreateDirectory(TimelineFolder); + Service.IconReplacer = new IconReplacer(); _comboConfigWindow = new(); diff --git a/RotationSolver/SigReplacers/IconReplacer.cs b/RotationSolver/SigReplacers/IconReplacer.cs index ec219c06e..6f3df7993 100644 --- a/RotationSolver/SigReplacers/IconReplacer.cs +++ b/RotationSolver/SigReplacers/IconReplacer.cs @@ -19,8 +19,6 @@ namespace RotationSolver.SigReplacers; internal sealed class IconReplacer : IDisposable { - internal static string TimelineFolder => typeof(IconReplacer).Assembly.Location + "/ScriptRotation"; - public record CustomRotationGroup(ClassJobID jobId, ClassJobID[] classJobIds, ICustomRotation[] rotations);