/// <inheritdoc/> protected override void Run() { foreach (var program in RomList.Model) { if (program.Rom.Format == INTV.Core.Model.RomFormat.Bin) { if (string.IsNullOrEmpty(program.Rom.ConfigPath)) { var cfgFilePath = System.IO.Path.ChangeExtension(program.Rom.RomPath, ProgramFileKind.CfgFile.FileExtension()); if (!System.IO.File.Exists(cfgFilePath)) { // try stock .cfg file cfgFilePath = program.Rom.GetStockCfgFile(program.ProgramInformation); } if (System.IO.File.Exists(cfgFilePath)) { INTV.Core.Model.Rom.ReplaceCfgPath(program.Rom, cfgFilePath); } } } } RomList.SaveRomList(true); RomList._fixRomList = null; RomList = null; }
/// <inheritdoc/> protected override void Run() { foreach (var program in RomList.Model) { program.Features.Jlp = JlpFeaturesHelpers.Default; program.Features.LtoFlash = LtoFlashFeaturesHelpers.Default; program.Features.Bee3 = Bee3FeaturesHelpers.Default; program.Features.Hive = HiveFeaturesHelpers.Default; } RomList.SaveRomList(true); RomList._fixRomList = null; RomList = null; }
/// <summary> /// Initializes a new instance of the <see cref="INTV.Shared.ViewModel.RomListViewModel+FixCfgFilesPatch"/> class. /// </summary> /// <param name="romList">The ViewModel for the ROM list.</param> internal FixCfgFilesPatch(RomListViewModel romList) : base("FixCfgFilesPatch") { RomList = romList; }
/// <summary> /// Initializes a new instance of the /// <see cref="INTV.Shared.ViewModel.RomListViewModel+FixJlpAndOtherFlags"/> class. /// </summary> /// <param name="romList">The ViewModel for the ROM list.</param> public FixJlpAndOtherFlags(RomListViewModel romList) : base("FixJlpAndOtherFlags") { RomList = romList; }