Fixed log and replay file paths to save into user home dir.

This commit is contained in:
Matthew
2010-05-04 16:34:30 +12:00
parent bea0b2299c
commit 95eaa9d94a
2 changed files with 5 additions and 2 deletions

View File

@@ -62,7 +62,10 @@ namespace OpenRA.Network
public OrderManager( IConnection conn, string replayFilename )
: this( conn )
{
replaySaveFile = File.Create( replayFilename );
string path = Environment.GetFolderPath(Environment.SpecialFolder.Personal)
+ Path.DirectorySeparatorChar + ".openra";
if (!Directory.Exists(path)) Directory.CreateDirectory(path);
replaySaveFile = File.Create( path + Path.DirectorySeparatorChar + replayFilename );
}
public void IssueOrders( Order[] orders )