Make moving saving not cripplingly slow

This commit is contained in:
beirich 2011-03-17 05:30:38 +00:00
parent e9635077dc
commit 138dfa38ae
1 changed files with 2 additions and 6 deletions

View File

@ -82,24 +82,20 @@ namespace BizHawk.MultiClient
private void WriteText() private void WriteText()
{ {
var file = new FileInfo(Filename);
int length = Log.GetMovieLength(); int length = Log.GetMovieLength();
string str = "";
using (StreamWriter sw = new StreamWriter(Filename)) using (StreamWriter sw = new StreamWriter(Filename))
{ {
foreach (KeyValuePair<string, string> kvp in Header.GetHeaderInfo()) foreach (KeyValuePair<string, string> kvp in Header.GetHeaderInfo())
{ {
str += kvp.Key + " " + kvp.Value + "\n"; sw.WriteLine(kvp.Key + " " + kvp.Value);
} }
for (int x = 0; x < length; x++) for (int x = 0; x < length; x++)
{ {
str += Log.GetFrame(x) + "\n"; sw.WriteLine(Log.GetFrame(x));
} }
sw.WriteLine(str);
} }
} }