/// <summary> /// Constructs based on XML game. /// </summary> /// <param name="xmlGame">Parsed game from PinballX XML database</param> public AggregatedGame([NotNull] PinballXGame xmlGame) : this(Locator.Current) { Update(xmlGame); FileId = Path.Combine(xmlGame.System.TablePath, xmlGame.FileName); // Unlink local file when table path changes. XmlGame.WhenAnyValue(g => g.System.TablePath).Subscribe(newPath => ClearLocalFile()); }