mirror of
https://github.com/PredatH0r/ChanSort.git
synced 2026-05-06 23:47:57 +02:00
- 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:
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user