1
Fork 0
mirror of https://github.com/thegeneralist01/Scene-Manager-DevRepo synced 2026-01-10 15:20:29 +01:00

Added try/catch for autosave

This commit is contained in:
Rich Dunne 2021-07-07 07:30:06 -06:00
parent fff7e14601
commit b73b8d0987

View file

@ -42,11 +42,20 @@ namespace SceneManager
private static void TerminationHandler(object sender, EventArgs e)
{
try
{
ExportPathMenu.ExportOnUnload();
}
catch(Exception ex)
{
Game.LogTrivial($"Autosave error: {ex.Message}");
Game.DisplayNotification($"~o~Scene Manager ~r~[Error]\n~w~There was a problem autosaving the paths.");
}
BarrierMenu.Cleanup();
PathManager.DeleteAllPaths();
Game.LogTrivial($"Plugin has shut down.");
Game.DisplayNotification($"~o~Scene Manager ~r~[Terminated]\n~w~The plugin has shut down.");
//Game.DisplayNotification($"~o~Scene Manager ~r~[Terminated]\n~w~The plugin has shut down.");
}
}
}