Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 12 additions & 1 deletion Shuffle.cs
Original file line number Diff line number Diff line change
Expand Up @@ -319,7 +319,13 @@ private void MakeSpoilerLog()
{
return;
};
StreamWriter LogFile = new StreamWriter("SpoilerLog-" + UpdateSettingsString() + ".txt");

StreamWriter LogFile = new StreamWriter(SpoilerLogFilename());

LogFile.WriteLine("Seed: {0}", tSeed.Text);
LogFile.WriteLine("Settings: {0}", UpdateSettingsString());
LogFile.WriteLine();

if (cDEnt.Checked)
{
LogFile.WriteLine("------------Entrance----------------------------Destination-----------");
Expand Down Expand Up @@ -362,6 +368,11 @@ private void MakeSpoilerLog()
LogFile.Close();
}

private string SpoilerLogFilename()
{
return saveROM.FileName.Replace(".z64", ".txt");

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think the filename should still say SpoilerLog somewhere.

}

private void ReadRulesetItemData()
{
ItemList = new List<ItemObject>();
Expand Down
Loading