disc - fix error in SBI application
This commit is contained in:
parent
39c2db3354
commit
a721596fb6
|
@ -87,6 +87,16 @@ namespace BizHawk.Emulation.DiscSystem
|
||||||
Func<int, bool> condition = (int lba) => lba >= OUT_Disc.Session1.LeadoutLBA;
|
Func<int, bool> condition = (int lba) => lba >= OUT_Disc.Session1.LeadoutLBA;
|
||||||
new ConditionalSectorSynthProvider().Install(OUT_Disc, condition, ss_leadout);
|
new ConditionalSectorSynthProvider().Install(OUT_Disc, condition, ss_leadout);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//apply SBI if it exists
|
||||||
|
var sbiPath = Path.ChangeExtension(IN_FromPath, ".sbi");
|
||||||
|
if (File.Exists(sbiPath) && SBI.SBIFormat.QuickCheckISSBI(sbiPath))
|
||||||
|
{
|
||||||
|
var loadSbiJob = new SBI.LoadSBIJob() { IN_Path = sbiPath };
|
||||||
|
loadSbiJob.Run();
|
||||||
|
var applySbiJob = new ApplySBIJob();
|
||||||
|
applySbiJob.Run(OUT_Disc, loadSbiJob.OUT_Data, IN_DiscMountPolicy.SBI_As_Mednafen);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
FinishLog();
|
FinishLog();
|
||||||
|
@ -163,16 +173,6 @@ namespace BizHawk.Emulation.DiscSystem
|
||||||
|
|
||||||
OUT_Disc = loadJob.OUT_Disc;
|
OUT_Disc = loadJob.OUT_Disc;
|
||||||
//OUT_Disc.DiscMountPolicy = IN_DiscMountPolicy; //NOT SURE WE NEED THIS (only makes sense for cue probably)
|
//OUT_Disc.DiscMountPolicy = IN_DiscMountPolicy; //NOT SURE WE NEED THIS (only makes sense for cue probably)
|
||||||
|
|
||||||
//apply SBI if it exists (TODO - for formats other than cue?)
|
|
||||||
var sbiPath = Path.ChangeExtension(IN_FromPath, ".sbi");
|
|
||||||
if (File.Exists(sbiPath) && SBI.SBIFormat.QuickCheckISSBI(sbiPath))
|
|
||||||
{
|
|
||||||
var loadSbiJob = new SBI.LoadSBIJob() { IN_Path = sbiPath };
|
|
||||||
loadSbiJob.Run();
|
|
||||||
var applySbiJob = new ApplySBIJob();
|
|
||||||
applySbiJob.Run(OUT_Disc, loadSbiJob.OUT_Data, IN_DiscMountPolicy.SBI_As_Mednafen);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
else if (ext == ".ccd")
|
else if (ext == ".ccd")
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue