Fixed log and replay file paths to save into user home dir.
This commit is contained in:
@@ -25,7 +25,7 @@ namespace OpenRA
|
|||||||
{
|
{
|
||||||
public static class Log
|
public static class Log
|
||||||
{
|
{
|
||||||
static StreamWriter writer = File.CreateText(Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments) + Path.DirectorySeparatorChar + "openra.log.txt");
|
static StreamWriter writer = File.CreateText(Environment.GetFolderPath(Environment.SpecialFolder.Personal) + Path.DirectorySeparatorChar + "openra.log.txt");
|
||||||
|
|
||||||
static Log()
|
static Log()
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -62,7 +62,10 @@ namespace OpenRA.Network
|
|||||||
public OrderManager( IConnection conn, string replayFilename )
|
public OrderManager( IConnection conn, string replayFilename )
|
||||||
: this( conn )
|
: 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 )
|
public void IssueOrders( Order[] orders )
|
||||||
|
|||||||
Reference in New Issue
Block a user