mirror of
https://github.com/xivdev/Penumbra.git
synced 2025-12-12 18:27:24 +01:00
Update PenumbraApi.cs Add method for unpacking mod.
This commit is contained in:
parent
3f4cd67dae
commit
2bfd5d138f
1 changed files with 13 additions and 0 deletions
|
|
@ -602,6 +602,19 @@ public class PenumbraApi : IDisposable, IPenumbraApi
|
||||||
return PenumbraApiEc.Success;
|
return PenumbraApiEc.Success;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public PenumbraApiEc UnpackMod(string modFilePackagePath)
|
||||||
|
{
|
||||||
|
if (File.Exists(modFilePackagePath))
|
||||||
|
{
|
||||||
|
ExternalModImporter.UnpackMod(modFilePackagePath);
|
||||||
|
return PenumbraApiEc.Success;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
return PenumbraApiEc.FileMissing;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
public PenumbraApiEc AddMod(string modDirectory)
|
public PenumbraApiEc AddMod(string modDirectory)
|
||||||
{
|
{
|
||||||
CheckInitialized();
|
CheckInitialized();
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue