diff --git a/RemnantSaveGuardian/Views/Pages/WorldAnalyzerPage.xaml.cs b/RemnantSaveGuardian/Views/Pages/WorldAnalyzerPage.xaml.cs
index 816faab..30d2db9 100644
--- a/RemnantSaveGuardian/Views/Pages/WorldAnalyzerPage.xaml.cs
+++ b/RemnantSaveGuardian/Views/Pages/WorldAnalyzerPage.xaml.cs
@@ -101,7 +101,6 @@ private void GameType_CollapsedExpanded(object sender, RoutedEventArgs e)
private void SavePlaintextButton_Click(object sender, RoutedEventArgs e)
{
System.Windows.Forms.FolderBrowserDialog openFolderDialog = new System.Windows.Forms.FolderBrowserDialog();
- //openFolderDialog.SelectedPath = Properties.Settings.Default.GameFolder;
openFolderDialog.Description = Loc.T("Export save files as plaintext");
openFolderDialog.UseDescriptionForTitle = true;
System.Windows.Forms.DialogResult result = openFolderDialog.ShowDialog();
@@ -110,10 +109,13 @@ private void SavePlaintextButton_Click(object sender, RoutedEventArgs e)
return;
}
File.WriteAllText($@"{openFolderDialog.SelectedPath}\profile.txt", Save.GetProfileData());
+ File.Copy(Save.SaveProfilePath, $@"{openFolderDialog.SelectedPath}\profile.sav", true);
foreach (var filePath in Save.WorldSaves)
{
File.WriteAllText($@"{openFolderDialog.SelectedPath}\{filePath.Substring(filePath.LastIndexOf(@"\")).Replace(".sav", ".txt")}", RemnantSave.DecompressSaveAsString(filePath));
+ File.Copy(filePath, $@"{openFolderDialog.SelectedPath}\{filePath.Substring(filePath.LastIndexOf(@"\"))}", true);
}
+ Logger.Success(Loc.T($"Exported save files successfully to {openFolderDialog.SelectedPath}"));
}
private void Default_PropertyChanged(object? sender, System.ComponentModel.PropertyChangedEventArgs e)
diff --git a/RemnantSaveGuardian/locales/Strings.Designer.cs b/RemnantSaveGuardian/locales/Strings.Designer.cs
index 69c1b1b..a8f167c 100644
--- a/RemnantSaveGuardian/locales/Strings.Designer.cs
+++ b/RemnantSaveGuardian/locales/Strings.Designer.cs
@@ -340,7 +340,7 @@ public static string Exit_the_game_before_restoring_a_save_backup_ {
}
///
- /// Looks up a localized string similar to Export save files as plaintext.
+ /// Looks up a localized string similar to Export save files.
///
public static string Export_save_files_as_plaintext {
get {
diff --git a/RemnantSaveGuardian/locales/Strings.resx b/RemnantSaveGuardian/locales/Strings.resx
index daf81d0..2b0ca1e 100644
--- a/RemnantSaveGuardian/locales/Strings.resx
+++ b/RemnantSaveGuardian/locales/Strings.resx
@@ -211,7 +211,7 @@
Exit the game before restoring a save backup.
- Export save files as plaintext
+ Export save files
Game Folder