mirror of
https://github.com/PredatH0r/ChanSort.git
synced 2026-02-20 21:36:49 +01:00
- completed unit tests from LG models
- fixed handling of broken files with circular linked-channel-list
This commit is contained in:
@@ -411,6 +411,8 @@ namespace ChanSort.Loader.LG
|
||||
{
|
||||
int offEntry = off + index*satConfig.sizeOfChannelLinkedListEntry;
|
||||
int nextIndex = BitConverter.ToUInt16(fileContent, offEntry + 2);
|
||||
if (this.nextChannelIndex.ContainsKey(index)) // prevent infinite loop (exists in some test files)
|
||||
break;
|
||||
this.nextChannelIndex.Add(index, nextIndex);
|
||||
index = nextIndex;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user