mirror of
https://github.com/Ottermandias/Glamourer.git
synced 2026-02-17 13:07:44 +01:00
.
This commit is contained in:
parent
5e410d8786
commit
8fbca07f3c
10 changed files with 453 additions and 24 deletions
|
|
@ -21,6 +21,9 @@ public class BackupService
|
|||
new(fileNames.ConfigFile),
|
||||
new(fileNames.DesignFileSystem),
|
||||
new(fileNames.MigrationDesignFile),
|
||||
new(fileNames.AutomationFile),
|
||||
new(fileNames.UnlockFileCustomize),
|
||||
new(fileNames.UnlockFileItems),
|
||||
};
|
||||
|
||||
list.AddRange(fileNames.Designs());
|
||||
|
|
|
|||
|
|
@ -13,6 +13,8 @@ public class FilenameService
|
|||
public readonly string MigrationDesignFile;
|
||||
public readonly string DesignDirectory;
|
||||
public readonly string AutomationFile;
|
||||
public readonly string UnlockFileCustomize;
|
||||
public readonly string UnlockFileItems;
|
||||
|
||||
public FilenameService(DalamudPluginInterface pi)
|
||||
{
|
||||
|
|
@ -21,6 +23,8 @@ public class FilenameService
|
|||
AutomationFile = Path.Combine(ConfigDirectory, "automation.json");
|
||||
DesignFileSystem = Path.Combine(ConfigDirectory, "sort_order.json");
|
||||
MigrationDesignFile = Path.Combine(ConfigDirectory, "Designs.json");
|
||||
UnlockFileCustomize = Path.Combine(ConfigDirectory, "unlocks_customize.json");
|
||||
UnlockFileItems = Path.Combine(ConfigDirectory, "unlocks_items.json");
|
||||
DesignDirectory = Path.Combine(ConfigDirectory, "designs");
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -13,6 +13,7 @@ using Glamourer.Gui.Tabs.DesignTab;
|
|||
using Glamourer.Interop;
|
||||
using Glamourer.Interop.Penumbra;
|
||||
using Glamourer.State;
|
||||
using Glamourer.Unlocks;
|
||||
using Microsoft.Extensions.DependencyInjection;
|
||||
using OtterGui.Classes;
|
||||
using OtterGui.Log;
|
||||
|
|
@ -80,7 +81,9 @@ public static class ServiceManager
|
|||
.AddSingleton<PenumbraService>()
|
||||
.AddSingleton<ObjectManager>()
|
||||
.AddSingleton<PenumbraAutoRedraw>()
|
||||
.AddSingleton<JobService>();
|
||||
.AddSingleton<JobService>()
|
||||
.AddSingleton<CustomizeUnlockManager>()
|
||||
.AddSingleton<ItemUnlockManager>();
|
||||
|
||||
private static IServiceCollection AddDesigns(this IServiceCollection services)
|
||||
=> services.AddSingleton<DesignManager>()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue