Interkarma / daggerfall-unity

Open source recreation of Daggerfall in the Unity engine
http://www.dfworkshop.net
MIT License
2.7k stars 327 forks source link

Added functionality to move deleted saves to DELETED dir #2596

Closed John-Leitch closed 2 months ago

John-Leitch commented 6 months ago

This PR fixes the following issue: #2594 (Deleting and creating new save can preserve old mod save data)

The update changes the logic of SaveGameManager.DeleteSaveFolder to move any folder to DELETED should it contain unexpected files or otherwise fail to delete. If a backup folder already exists with the same, a numbered suffix is appended beginning with _2.

image