Don't crash if a replay can't be read.
This commit is contained in:
@@ -77,7 +77,13 @@ namespace OpenRA.Mods.Common.LoadScreens
|
|||||||
// Load a replay directly
|
// Load a replay directly
|
||||||
if (!string.IsNullOrEmpty(Launch.Replay))
|
if (!string.IsNullOrEmpty(Launch.Replay))
|
||||||
{
|
{
|
||||||
var replayMeta = ReplayMetadata.Read(Launch.Replay);
|
ReplayMetadata replayMeta = null;
|
||||||
|
try
|
||||||
|
{
|
||||||
|
replayMeta = ReplayMetadata.Read(Launch.Replay);
|
||||||
|
}
|
||||||
|
catch { }
|
||||||
|
|
||||||
if (ReplayUtils.PromptConfirmReplayCompatibility(replayMeta, Game.LoadShellMap))
|
if (ReplayUtils.PromptConfirmReplayCompatibility(replayMeta, Game.LoadShellMap))
|
||||||
Game.JoinReplay(Launch.Replay);
|
Game.JoinReplay(Launch.Replay);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user