- correctly detecting LG hospitality TV files named "xx....TLL" as GlobalClone/XML text files

This commit is contained in:
hbeham
2019-11-11 16:06:11 +01:00
parent 5cdf9d0995
commit 44f2c77c8d
4 changed files with 14 additions and 5 deletions

View File

@@ -149,9 +149,12 @@ namespace ChanSort.Loader.LG
long fileSize = new FileInfo(this.FileName).Length;
if (fileSize > MaxFileSize)
throw new FileLoadException(string.Format(ERR_fileTooBig, fileSize, MaxFileSize));
throw new FileLoadException(string.Format(ERR_fileTooBig, fileSize, MaxFileSize), this.FileName);
this.fileContent = File.ReadAllBytes(this.FileName);
if (this.fileContent[0] == '<')
throw new FileLoadException("Invalid binary TLL file format. Maybe a GlobalClone/XML file?", this.FileName);
int off = 0;
this.ReadFileHeader(ref off);