From 998e4ebe009faac8fe1d9cad1249cd8205ddbfe8 Mon Sep 17 00:00:00 2001 From: zeromus Date: Sat, 6 Aug 2011 22:01:53 +0000 Subject: [PATCH] tweak cue writing to satisfy daemon tools idiosyncracy --- BizHawk.Emulation/Disc/DiscTOC.cs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/BizHawk.Emulation/Disc/DiscTOC.cs b/BizHawk.Emulation/Disc/DiscTOC.cs index f4fdc3a7e2..2c133a011c 100644 --- a/BizHawk.Emulation/Disc/DiscTOC.cs +++ b/BizHawk.Emulation/Disc/DiscTOC.cs @@ -70,7 +70,12 @@ namespace BizHawk.DiscSystem //if (prefs.PreferPregapCommand && index.num == 0) // sb.AppendFormat(" PREGAP {0}\n", new Cue.CueTimestamp(index.length_lba).Value); - if (leadin) + if (index.num == 0 && index.lba == track.Indexes[1].lba) + { + //dont emit index 0 when it is the same as index 1. it confuses daemon tools. + //(make this an option?) + } + else if (leadin) { //don't generate the first index, it is illogical }