re-enable replay saving

This commit is contained in:
Chris Forbes
2010-04-24 23:34:58 +12:00
parent 587cd34b92
commit 2753d6d231
2 changed files with 8 additions and 2 deletions

2
.gitignore vendored
View File

@@ -17,7 +17,7 @@ mods/*/*.dll
sheet-*.png sheet-*.png
log.txt log.txt
/replay.rep *.rep
#binary stuff #binary stuff
/*.dll /*.dll

View File

@@ -172,11 +172,17 @@ namespace OpenRA
public static string CurrentHost = ""; public static string CurrentHost = "";
public static int CurrentPort = 0; public static int CurrentPort = 0;
internal static void JoinServer(string host, int port) internal static void JoinServer(string host, int port)
{ {
CurrentHost = host; CurrentHost = host;
CurrentPort = port; CurrentPort = port;
orderManager = new OrderManager(new NetworkConnection( host, port )); // TODO: supplying a replay file prevents osx from joining a game orderManager = new OrderManager(new NetworkConnection( host, port ), ChooseReplayFilename());
}
static string ChooseReplayFilename()
{
return DateTime.UtcNow.ToString("OpenRA-yyyy-MM-ddThhmmssZ.rep");
} }
internal static void JoinLocal() internal static void JoinLocal()