fix: use 5.3 opcodes
This commit is contained in:
parent
8e24a3ec0c
commit
9598b6048c
|
@ -8,6 +8,9 @@ using System.Runtime.InteropServices;
|
||||||
|
|
||||||
namespace Globetrotter {
|
namespace Globetrotter {
|
||||||
class TreasureMaps {
|
class TreasureMaps {
|
||||||
|
private const ushort ACTOR_CONTROL = 0x212; // updated 5.3
|
||||||
|
private const uint TREASURE_MAPS = 0x54;
|
||||||
|
|
||||||
private static Dictionary<uint, uint> _mapToRow;
|
private static Dictionary<uint, uint> _mapToRow;
|
||||||
private Dictionary<uint, uint> MapToRow {
|
private Dictionary<uint, uint> MapToRow {
|
||||||
get {
|
get {
|
||||||
|
@ -117,12 +120,12 @@ namespace Globetrotter {
|
||||||
}
|
}
|
||||||
|
|
||||||
public static TreasureMapPacket ParsePacket(IntPtr dataPtr, ushort opCode) {
|
public static TreasureMapPacket ParsePacket(IntPtr dataPtr, ushort opCode) {
|
||||||
if (opCode != 0x165) {
|
if (opCode != ACTOR_CONTROL) {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
uint category = (uint)Marshal.ReadByte(dataPtr);
|
uint category = (uint)Marshal.ReadByte(dataPtr);
|
||||||
if (category != 0x54) {
|
if (category != TREASURE_MAPS) {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue