Merge pull request 'C2025-019 RO Editor - Update the Orphaned RO Record text file to save in the current RO folder instead of the users appdata folder.' (#525) from C2025-019 into Development

Good for testing phase.
This commit is contained in:
John Jenko 2025-02-20 16:04:06 -05:00
commit 301c4c2c97

View File

@ -264,9 +264,11 @@ namespace ROEditor
File.Delete(FstNew); // remove ROFST.NEW File.Delete(FstNew); // remove ROFST.NEW
if (OrphanedRecords.Length > 0) if (OrphanedRecords.Length > 0)
{ {
StreamWriter sw = new StreamWriter(VlnSettings.TemporaryFolder + @"\Orphaned RO Records.txt"); using (StreamWriter sw = new StreamWriter(Path.Combine(FstDir, @"Orphaned RO Records.txt"), false))
sw.Write(OrphanedRecords.ToString()); {
sw.Close(); sw.Write(OrphanedRecords.ToString());
sw.Close();
}
MessageBox.Show("The file Orphaned RO Records.txt has been created", "Warning - Orphan RO Record"); MessageBox.Show("The file Orphaned RO Records.txt has been created", "Warning - Orphan RO Record");
} }