mirror of
https://github.com/xivdev/Penumbra.git
synced 2026-01-03 14:23:43 +01:00
Add API events for mod deletion, addition or move.
This commit is contained in:
parent
2900351b9a
commit
b50ed4b99a
5 changed files with 113 additions and 13 deletions
|
|
@ -58,7 +58,7 @@ public partial class Mod
|
|||
return;
|
||||
}
|
||||
|
||||
MoveDataFile( oldDirectory, BasePath );
|
||||
MoveDataFile( oldDirectory, dir );
|
||||
new ModBackup( mod ).Move( null, dir.Name );
|
||||
|
||||
dir.Refresh();
|
||||
|
|
@ -69,7 +69,7 @@ public partial class Mod
|
|||
return;
|
||||
}
|
||||
|
||||
ModPathChanged.Invoke( ModPathChangeType.Moved, mod, oldDirectory, BasePath );
|
||||
ModPathChanged.Invoke( ModPathChangeType.Moved, mod, oldDirectory, dir );
|
||||
if( metaChange != ModDataChangeType.None )
|
||||
{
|
||||
ModDataChanged?.Invoke( metaChange, mod, oldName );
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue