added support for LG PN series

This commit is contained in:
hbeham
2013-08-21 00:19:26 +02:00
parent 27f2f6181a
commit f1d9dcb3b3
10 changed files with 446 additions and 11 deletions

View File

@@ -278,9 +278,12 @@ namespace ChanSort.Loader.LG
if (channelCount == 0) return;
recordSize = GetActChannelRecordSize(off, blockSize, channelCount);
var key = (Path.GetFileNameWithoutExtension(this.FileName) ?? "").ToUpper().StartsWith("XXLH3000")
? "LH3000"
: recordSize.ToString();
var key = recordSize.ToString();
string basename = (Path.GetFileNameWithoutExtension(this.FileName) ?? "").ToUpper();
if (basename.StartsWith("XXLH3000"))
key += "LH3000";
else if (basename.StartsWith("XXPN"))
key += "PN";
var actMapping = this.actMappings.GetMapping(key);
this.reorderPhysically = actMapping.Settings.GetInt("reorderChannelData") != 0;