mirror of
https://github.com/xivdev/Penumbra.git
synced 2025-12-12 18:27:24 +01:00
Add ExternalModImporter.cs allows access to ModFileSystemSelector actions to HTTP API
This commit is contained in:
parent
eddbd2b14f
commit
3f4cd67dae
1 changed files with 22 additions and 0 deletions
22
Penumbra/Api/ExternalModImporter.cs
Normal file
22
Penumbra/Api/ExternalModImporter.cs
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
using Dalamud.Game.ClientState.Keys;
|
||||
using OtterGui.Filesystem;
|
||||
using OtterGui.FileSystem.Selector;
|
||||
using Penumbra.Mods;
|
||||
using Penumbra.UI.Classes;
|
||||
using Penumbra.UI.ModsTab;
|
||||
using System;
|
||||
using System.IO;
|
||||
using System.Linq;
|
||||
|
||||
namespace Penumbra.Api {
|
||||
public class ExternalModImporter {
|
||||
private static ModFileSystemSelector modFileSystemSelectorInstance;
|
||||
|
||||
public static ModFileSystemSelector ModFileSystemSelectorInstance { get => modFileSystemSelectorInstance; set => modFileSystemSelectorInstance = value; }
|
||||
|
||||
public static void UnpackMod(string modPackagePath)
|
||||
{
|
||||
modFileSystemSelectorInstance.ImportStandaloneModPackage(modPackagePath);
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue