mirror of
https://github.com/xivdev/Penumbra.git
synced 2025-12-20 15:44:22 +01:00
Make everything services.
This commit is contained in:
parent
cf1dcfcb7c
commit
e05dbe9885
81 changed files with 220 additions and 317 deletions
|
|
@ -1,11 +1,12 @@
|
|||
using Dalamud.Interface.Internal.Notifications;
|
||||
using OtterGui.Classes;
|
||||
using OtterGui.Services;
|
||||
using Penumbra.Import;
|
||||
using Penumbra.Mods.Editor;
|
||||
|
||||
namespace Penumbra.Mods.Manager;
|
||||
|
||||
public class ModImportManager(ModManager modManager, Configuration config, ModEditor modEditor) : IDisposable
|
||||
public class ModImportManager(ModManager modManager, Configuration config, ModEditor modEditor) : IDisposable, IService
|
||||
{
|
||||
private readonly ConcurrentQueue<string[]> _modsToUnpack = new();
|
||||
|
||||
|
|
@ -32,7 +33,8 @@ public class ModImportManager(ModManager modManager, Configuration config, ModEd
|
|||
if (File.Exists(s))
|
||||
return true;
|
||||
|
||||
Penumbra.Messager.NotificationMessage($"Failed to import queued mod at {s}, the file does not exist.", NotificationType.Warning, false);
|
||||
Penumbra.Messager.NotificationMessage($"Failed to import queued mod at {s}, the file does not exist.", NotificationType.Warning,
|
||||
false);
|
||||
return false;
|
||||
}).Select(s => new FileInfo(s)).ToArray();
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue