diff --git a/BizHawk.Emulation/Disc/Disc.API.cs b/BizHawk.Emulation/Disc/Disc.API.cs index 7c0e3c61f1..66b14f4d07 100644 --- a/BizHawk.Emulation/Disc/Disc.API.cs +++ b/BizHawk.Emulation/Disc/Disc.API.cs @@ -16,6 +16,7 @@ namespace BizHawk.DiscSystem public class ProgressReport { public string Message; + public bool InfoPresent; public double ProgressEstimate; public double ProgressCurrent; public int TaskCount; diff --git a/BizHawk.Emulation/Disc/Disc.cs b/BizHawk.Emulation/Disc/Disc.cs index 5f3134bee3..5dfbc3698c 100644 --- a/BizHawk.Emulation/Disc/Disc.cs +++ b/BizHawk.Emulation/Disc/Disc.cs @@ -535,6 +535,9 @@ namespace BizHawk.DiscSystem progress.TaskCount = 2; progress.Message = "Generating Cue"; + progress.ProgressEstimate = 1; + progress.ProgressCurrent = 0; + progress.InfoPresent = true; string cuePath = Path.Combine(directory, baseName + ".cue"); File.WriteAllText(cuePath, cue); diff --git a/DiscoHawk/DiscoHawk.cs b/DiscoHawk/DiscoHawk.cs index bf29727bc2..8c80a25d90 100644 --- a/DiscoHawk/DiscoHawk.cs +++ b/DiscoHawk/DiscoHawk.cs @@ -9,10 +9,6 @@ using System.IO; //it can handle binpercue //it seems not to be able to handle binpertrack, or maybe i am doing something wrong (still havent ruled it out) -//isobuster - -//does not like onebinpertrack images with index 00 - - namespace BizHawk { class DiscoHawk diff --git a/DiscoHawk/ProgressDialog.cs b/DiscoHawk/ProgressDialog.cs index ba813767ce..f3e94d6d31 100644 --- a/DiscoHawk/ProgressDialog.cs +++ b/DiscoHawk/ProgressDialog.cs @@ -29,8 +29,14 @@ namespace BizHawk { double curr = pr.ProgressCurrent; double max = pr.ProgressEstimate; - double value = curr / max * 100; - progressBar1.Value = (int)value; + if (pr.InfoPresent) + { + double value = curr/max*100; + int nValue = (int) value; + if (nValue < 0 || nValue > 100) + nValue = 0; + progressBar1.Value = nValue; + } lblMessage.Text = pr.Message; } }