Fix sav path after exporting to new name (#2791)

This commit is contained in:
Kermalis
2020-03-19 01:15:34 -04:00
committed by GitHub
parent d06949bdb3
commit 5bdfd74862
2 changed files with 4 additions and 0 deletions

View File

@@ -1196,7 +1196,10 @@ private void ClickExportSAVBAK(object sender, EventArgs e)
private void ClickExportSAV(object sender, EventArgs e)
{
if (Menu_ExportSAV.Enabled)
{
C_SAV.ExportSaveFile();
Text = GetProgramTitle(C_SAV.SAV);
}
}
private void ClickSaveFileName(object sender, EventArgs e)

View File

@@ -362,6 +362,7 @@ private static void ExportSAV(SaveFile sav, string path)
{
File.WriteAllBytes(path, sav.Write(flags));
sav.Edited = false;
sav.SetFileInfo(path);
Alert(MsgSaveExportSuccessPath, path);
}
catch (Exception x)