- basic support for Enigma2 (Dreambox, Vu+,...) channel lists

- dynamic number of favorite lists (still limited to 64 due to bitmask)
This commit is contained in:
Horst Beham
2021-03-07 16:12:21 +01:00
parent bc4b650f20
commit cb1fb9db5d
17 changed files with 608 additions and 23 deletions

View File

@@ -94,7 +94,7 @@ namespace ChanSort.Loader.Samsung.Scm
else if (sortedFavorites != FavoritesIndexMode.Boolean && favValue != -1)
fav |= mask;
if (sortedFavorites == FavoritesIndexMode.IndividuallySorted)
this.OldFavIndex[favIndex] = favValue;
this.SetOldPosition(1+favIndex, favValue);
mask <<= 1;
++favIndex;
}

View File

@@ -616,8 +616,8 @@ namespace ChanSort.Loader.Samsung.Zip
// update favorites
for (int i=0, mask=1; i<5; i++, mask <<= 1)
{
int oldPos = channel.OldFavIndex[i];
int newPos = ((int)channel.Favorites & mask) != 0 ? channel.FavIndex[i] : -1;
int oldPos = channel.GetOldPosition(1+i);
int newPos = ((int)channel.Favorites & mask) != 0 ? channel.GetPosition(1+i) : -1;
if (newPos >= 0)
{