mirror of
https://github.com/PredatH0r/ChanSort.git
synced 2026-05-07 03:27:03 +02:00
2021-05-01
- added "Settings / Reset to defaults and restart" function to delete the stored customized settings in case something went wrong (like massively oversized column widths) - Philips ChannelMap\_30: fixed error when trying to save this type of list - Upgraded to DevExpress WinForms 20.2.7 user interface library
This commit is contained in:
@@ -18,7 +18,19 @@ namespace ChanSort.Loader.Samsung.Scm
|
||||
|
||||
public byte MagicMarker { get { return data[BaseOffset]; } }
|
||||
public int SatelliteNr { get { return BitConverter.ToInt32(data, BaseOffset + 1); } }
|
||||
public string Name { get { return utf16Encoding.GetString(data, BaseOffset + 9, 128).TrimEnd('\0'); } }
|
||||
|
||||
public string Name
|
||||
{
|
||||
get
|
||||
{
|
||||
var name = utf16Encoding.GetString(data, BaseOffset + 9, 128);
|
||||
var i = name.IndexOf('\0');
|
||||
if (i >= 0)
|
||||
name = name.Substring(0, i);
|
||||
return name;
|
||||
}
|
||||
}
|
||||
|
||||
public bool IsEast { get { return BitConverter.ToInt32(data, BaseOffset + 137) != 0; } }
|
||||
public int Longitude { get { return BitConverter.ToInt32(data, BaseOffset + 141); } }
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user