Add API events for mod deletion, addition or move.

This commit is contained in:
Ottermandias 2022-12-02 17:16:48 +01:00
parent 2900351b9a
commit b50ed4b99a
5 changed files with 113 additions and 13 deletions

View file

@ -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 );