mirror of
https://github.com/LBPUnion/ProjectLighthouse.git
synced 2025-08-02 10:08:39 +00:00
Fix reading in wrong order
This commit is contained in:
parent
b51ddec029
commit
3e6a80cc32
1 changed files with 7 additions and 7 deletions
|
@ -94,6 +94,13 @@ public class NPTicket
|
||||||
|
|
||||||
reader.ReadUInt16BE(); // Ticket length, we don't care about this
|
reader.ReadUInt16BE(); // Ticket length, we don't care about this
|
||||||
|
|
||||||
|
#if DEBUG
|
||||||
|
SectionHeader bodyHeader = reader.ReadSectionHeader();
|
||||||
|
Logger.Log($"bodyHeader.Type is {bodyHeader.Type}", LoggerLevelLogin.Instance);
|
||||||
|
#else
|
||||||
|
reader.ReadSectionHeader();
|
||||||
|
#endif
|
||||||
|
|
||||||
switch (npTicket.ticketVersion)
|
switch (npTicket.ticketVersion)
|
||||||
{
|
{
|
||||||
case "2.1":
|
case "2.1":
|
||||||
|
@ -105,13 +112,6 @@ public class NPTicket
|
||||||
default: throw new NotImplementedException();
|
default: throw new NotImplementedException();
|
||||||
}
|
}
|
||||||
|
|
||||||
#if DEBUG
|
|
||||||
SectionHeader bodyHeader = reader.ReadSectionHeader();
|
|
||||||
Logger.Log($"bodyHeader.Type is {bodyHeader.Type}", LoggerLevelLogin.Instance);
|
|
||||||
#else
|
|
||||||
reader.ReadSectionHeader();
|
|
||||||
#endif
|
|
||||||
|
|
||||||
if (npTicket.Platform == Platform.Unknown)
|
if (npTicket.Platform == Platform.Unknown)
|
||||||
{
|
{
|
||||||
Logger.Log($"Could not determine platform from IssuerId {npTicket.IssuerId} decimal", LoggerLevelLogin.Instance);
|
Logger.Log($"Could not determine platform from IssuerId {npTicket.IssuerId} decimal", LoggerLevelLogin.Instance);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue