Automatically switch mods when connecting to a server / replay.

This commit is contained in:
Paul Chote
2014-12-13 16:00:29 +13:00
parent 660f6682ff
commit 96b5b1fc66
3 changed files with 33 additions and 2 deletions

View File

@@ -33,9 +33,12 @@ namespace OpenRA.Network
public readonly int TickCount;
public readonly bool IsValid;
public readonly Session LobbyInfo;
public readonly string Filename;
public ReplayConnection(string replayFilename)
{
Filename = replayFilename;
// Parse replay data into a struct that can be fed to the game in chunks
// to avoid issues with all immediate orders being resolved on the first tick.
using (var rs = File.OpenRead(replayFilename))