fix for loading Sony channel lists with channel numbers 10000 and higher (negative No values in the sdb.xml file)

This commit is contained in:
hbeham
2019-11-10 11:25:07 +01:00
parent 65600756da
commit 449dea8195
2 changed files with 16 additions and 4 deletions

View File

@@ -249,11 +249,19 @@ namespace ChanSort.Api
public void AddDebug(ushort val)
{
if (this.Debug == null)
this.Debug = val.ToString("x2");
this.Debug = val.ToString("x4");
else
this.Debug += " " + val.ToString("x4");
}
public void AddDebug(uint val)
{
if (this.Debug == null)
this.Debug = val.ToString("x8");
else
this.Debug += " " + val.ToString("x8");
}
public void AddDebug(byte[] data, int offset, int len)
{
for (int i = 0; i < len; i++)