mirror of
https://github.com/PredatH0r/ChanSort.git
synced 2026-01-23 23:59:03 +01:00
- cleanup (renamed directories to match project structure)
- tested and fixed Samsung favorites and locks for C,D,AstraHD
This commit is contained in:
36
ChanSort.Loader.ScmFile/ModelConstants.cs
Normal file
36
ChanSort.Loader.ScmFile/ModelConstants.cs
Normal file
@@ -0,0 +1,36 @@
|
||||
using ChanSort.Api;
|
||||
|
||||
namespace ChanSort.Loader.ScmFile
|
||||
{
|
||||
internal class ModelConstants
|
||||
{
|
||||
public readonly int dvbsSatelliteLength;
|
||||
public readonly int dvbsTransponderLength;
|
||||
public readonly int dvbsChannelLength;
|
||||
public readonly int dvbtChannelLength;
|
||||
public readonly int avbtChannelLength;
|
||||
public readonly int hdplusChannelLength;
|
||||
public readonly int avbtFineTuneLength;
|
||||
public readonly int dvbtFineTuneLength;
|
||||
public readonly Favorites supportedFavorites;
|
||||
public readonly int ptcLength;
|
||||
|
||||
public ModelConstants(IniFile.Section iniSection)
|
||||
{
|
||||
this.avbtChannelLength = iniSection.GetInt("map-AirA");
|
||||
this.dvbtChannelLength = iniSection.GetInt("map-AirD");
|
||||
this.dvbsChannelLength = iniSection.GetInt("map-SateD");
|
||||
this.ptcLength = iniSection.GetInt("PTC");
|
||||
this.hdplusChannelLength = iniSection.GetInt("map-AstraHDPlusD");
|
||||
this.dvbsSatelliteLength = iniSection.GetInt("SatDataBase.dat");
|
||||
this.dvbsTransponderLength = iniSection.GetInt("TransponderDataBase.dat");
|
||||
this.avbtFineTuneLength = iniSection.GetInt("FineTune");
|
||||
this.dvbtFineTuneLength = iniSection.GetInt("FineTune_Digital");
|
||||
int numFavorites = iniSection.GetInt("Favorites");
|
||||
int mask = 0;
|
||||
for (int i = 0; i < numFavorites; i++)
|
||||
mask = (mask << 1) | 1;
|
||||
this.supportedFavorites = (Favorites)mask;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user