From e68d996f94cf822590f2cec1b059b3cb12395c8e Mon Sep 17 00:00:00 2001 From: zeromus Date: Sat, 17 Nov 2012 19:45:34 +0000 Subject: [PATCH] discsystem-continue working on ecm. linear search method done --- BizHawk.Emulation/DiscSystem/Blobs/Blob_ECM.cs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/BizHawk.Emulation/DiscSystem/Blobs/Blob_ECM.cs b/BizHawk.Emulation/DiscSystem/Blobs/Blob_ECM.cs index 3477d3f6f4..1e6cfffeeb 100644 --- a/BizHawk.Emulation/DiscSystem/Blobs/Blob_ECM.cs +++ b/BizHawk.Emulation/DiscSystem/Blobs/Blob_ECM.cs @@ -270,6 +270,11 @@ namespace BizHawk.DiscSystem IndexEntry curie = Index[listIndex]; if (curie.LogicalOffset > byte_pos) { + if (Index[listIndex - 1].LogicalOffset > byte_pos) + { + LastReadIndex = 0; + goto RETRY; + } break; } listIndex++;