public MvGame(IGame srcGame, string launchBoxRoot) { Debug.WriteLine($"[MvGame] New: '{srcGame.Id}': '{srcGame.Title}'"); Title = srcGame.Title; Id = srcGame.Id; Hide = srcGame.Hide; Broken = srcGame.Broken; LaunchBoxDbId = srcGame.LaunchBoxDbId; #region Présent dans platform.xml ApplicationPath = new PathsCollec("ApplicationPath", srcGame.ApplicationPath, launchBoxRoot); ManualPath = new PathsCollec("ManualPath", srcGame.ManualPath, launchBoxRoot); MusicPath = new PathsCollec("MusicPath", srcGame.MusicPath, launchBoxRoot); VideoPath = new PathsCollec("VideoPath", srcGame.VideoPath, launchBoxRoot); #endregion #region images ScreenshotImagePath = new PathsCollec("ScreenshotImagePath", srcGame.ScreenshotImagePath, launchBoxRoot); FrontImagePath = new PathsCollec("FrontImagePath", srcGame.FrontImagePath, launchBoxRoot); MarqueeImagePath = new PathsCollec("MarqueeImagePath", srcGame.MarqueeImagePath, launchBoxRoot); BackImagePath = new PathsCollec("BackImagePath", srcGame.BackImagePath, launchBoxRoot); Box3DImagePath = new PathsCollec("Box3DImagePath", srcGame.Box3DImagePath, launchBoxRoot); BackgroundImagePath = new PathsCollec("BackgroundImagePath", srcGame.BackgroundImagePath, launchBoxRoot); Cart3DImagePath = new PathsCollec("Cart3DImagePath", srcGame.Cart3DImagePath, launchBoxRoot); CartFrontImagePath = new PathsCollec("CartFrontImagePath", srcGame.CartFrontImagePath, launchBoxRoot); CartBackImagePath = new PathsCollec("CartBackImagePath", srcGame.CartBackImagePath, launchBoxRoot); ClearLogoImagePath = new PathsCollec("ClearLogoImagePath", srcGame.ClearLogoImagePath, launchBoxRoot); #endregion }
public MvGame(IGame srcGame, string launchBoxRoot) { Debug.WriteLine($"[MvGame] New: '{srcGame.Id}': '{srcGame.Title}'"); // MessageBox.Show($"Game: {srcGame.Id}"); Title = srcGame.Title; Id = srcGame.Id; Hide = srcGame.Hide; Broken = srcGame.Broken; LaunchBoxDbId = srcGame.LaunchBoxDbId; #region Présent dans platform.xml ApplicationPath = new PathsCollec(EnumPathType.ApplicationPath, srcGame.ApplicationPath, launchBoxRoot); ManualPath = new PathsCollec(EnumPathType.ManualPath, srcGame.ManualPath, launchBoxRoot); MusicPath = new PathsCollec(EnumPathType.MusicPath, srcGame.MusicPath, launchBoxRoot); VideoPath = new PathsCollec(EnumPathType.VideoPath, srcGame.VideoPath, launchBoxRoot); #endregion #region images ScreenshotImagePath = new PathsCollec(EnumPathType.ScreenshotImagePath, srcGame.ScreenshotImagePath, launchBoxRoot); FrontImagePath = new PathsCollec(EnumPathType.FrontImagePath, srcGame.FrontImagePath, launchBoxRoot); MarqueeImagePath = new PathsCollec(EnumPathType.MarqueeImagePath, srcGame.MarqueeImagePath, launchBoxRoot); BackImagePath = new PathsCollec(EnumPathType.BackImagePath, srcGame.BackImagePath, launchBoxRoot); Box3DImagePath = new PathsCollec(EnumPathType.Box3DImagePath, srcGame.Box3DImagePath, launchBoxRoot); BackgroundImagePath = new PathsCollec(EnumPathType.BackgroundImagePath, srcGame.BackgroundImagePath, launchBoxRoot); Cart3DImagePath = new PathsCollec(EnumPathType.Cart3DImagePath, srcGame.Cart3DImagePath, launchBoxRoot); CartFrontImagePath = new PathsCollec(EnumPathType.CartFrontImagePath, srcGame.CartFrontImagePath, launchBoxRoot); CartBackImagePath = new PathsCollec(EnumPathType.CartBackImagePath, srcGame.CartBackImagePath, launchBoxRoot); ClearLogoImagePath = new PathsCollec(EnumPathType.ClearLogoImagePath, srcGame.ClearLogoImagePath, launchBoxRoot); #endregion #region 2020 Additionnals apps // 2020 Additionnal to manage "roms mixed" foreach (IAdditionalApplication addiApp in srcGame.GetAllAdditionalApplications()) { /* Fitre sur les ids, si l'application a le même id que le jeu on conserve pour * changer les paths. Choix pour le moment, pour ne garder que les jeux, en attendant de * voir ce que ça donne au niveau de l'emploi des applications additionnelles dans Launchbox */ if (addiApp.GameId != srcGame.Id) { continue; } AddiRomPaths.Add(new AAppPath(addiApp.Id, addiApp.ApplicationPath, launchBoxRoot)); // MessageBox.Show($"{srcGame.Id} subid:{addiApp.Id}: {addiApp.ApplicationPath}"); } #endregion }