re-enable replay saving
This commit is contained in:
2
.gitignore
vendored
2
.gitignore
vendored
@@ -17,7 +17,7 @@ mods/*/*.dll
|
|||||||
sheet-*.png
|
sheet-*.png
|
||||||
log.txt
|
log.txt
|
||||||
|
|
||||||
/replay.rep
|
*.rep
|
||||||
|
|
||||||
#binary stuff
|
#binary stuff
|
||||||
/*.dll
|
/*.dll
|
||||||
|
|||||||
@@ -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()
|
||||||
|
|||||||
Reference in New Issue
Block a user