mirror of
https://github.com/aaru-dps/RedBookPlayer.git
synced 2026-09-20 05:44:16 +00:00
Address PR feedback
This commit is contained in:
@@ -30,7 +30,7 @@ namespace RedBookPlayer
|
||||
return;
|
||||
|
||||
// If the theme name is "default", we assume the internal theme is used
|
||||
if(theme.Equals("default", StringComparison.OrdinalIgnoreCase))
|
||||
if(theme.Equals("default", StringComparison.CurrentCultureIgnoreCase))
|
||||
{
|
||||
Instance.ContentControl.Content = new PlayerView();
|
||||
}
|
||||
|
||||
@@ -159,11 +159,11 @@ namespace RedBookPlayer
|
||||
}
|
||||
}
|
||||
|
||||
foreach(KeyValuePair<ushort, int> item in track.Indexes.Reverse())
|
||||
foreach((ushort key, int i) in track.Indexes.Reverse())
|
||||
{
|
||||
if((int)CurrentSector >= item.Value)
|
||||
if((int)CurrentSector >= i)
|
||||
{
|
||||
CurrentIndex = item.Key;
|
||||
CurrentIndex = key;
|
||||
return;
|
||||
}
|
||||
}
|
||||
@@ -676,16 +676,16 @@ namespace RedBookPlayer
|
||||
|
||||
// This seems to be constant? It should not exist on CD-ROM but CloneCD creates them anyway
|
||||
// Format seems like ATIP, but ATIP should not be as 0xC0 in TOC...
|
||||
trackDescriptors.Add(new TrackDataDescriptor
|
||||
{
|
||||
SessionNumber = currentSession,
|
||||
POINT = 0xC0,
|
||||
ADR = 5,
|
||||
CONTROL = 0,
|
||||
Min = 128,
|
||||
PMIN = 97,
|
||||
PSEC = 25
|
||||
});
|
||||
//trackDescriptors.Add(new TrackDataDescriptor
|
||||
//{
|
||||
// SessionNumber = currentSession,
|
||||
// POINT = 0xC0,
|
||||
// ADR = 5,
|
||||
// CONTROL = 0,
|
||||
// Min = 128,
|
||||
// PMIN = 97,
|
||||
// PSEC = 25
|
||||
//});
|
||||
}
|
||||
|
||||
// Lead-in
|
||||
|
||||
Reference in New Issue
Block a user