Merge remote-tracking branch 'origin/main' into pr/CarlPoppa1/12
This commit is contained in:
@@ -18,6 +18,7 @@ type Offset struct {
|
||||
KeyBindingsOffset uintptr
|
||||
KeyBindingsSkillsOffset uintptr
|
||||
TZ uintptr
|
||||
Quests uintptr
|
||||
}
|
||||
|
||||
func calculateOffsets(process *Process) Offset {
|
||||
@@ -90,6 +91,12 @@ func calculateOffsets(process *Process) Offset {
|
||||
tzPtr := process.ReadUInt(pattern+3, Uint32)
|
||||
tzOffset := pattern - process.moduleBaseAddressPtr + 7 + uintptr(tzPtr)
|
||||
|
||||
// Quest Bytes Data
|
||||
pattern = process.FindPattern(memory, "\x42\xc6\x84\x28\x00\x00\x00\x00\x00\x49\xff\xc5\x49\x83\xfd\x29", "xxxx?????xxxxxxx")
|
||||
bytes = process.ReadBytesFromMemory(pattern+4, 4)
|
||||
questOffset := uintptr(binary.LittleEndian.Uint32(bytes))
|
||||
questDataOffset := questOffset + 1
|
||||
|
||||
return Offset{
|
||||
GameData: gameDataOffset,
|
||||
UnitTable: unitTableOffset,
|
||||
@@ -104,5 +111,6 @@ func calculateOffsets(process *Process) Offset {
|
||||
KeyBindingsOffset: keyBindingsOffset,
|
||||
KeyBindingsSkillsOffset: keyBindingsSkillsOffset,
|
||||
TZ: tzOffset,
|
||||
Quests: questDataOffset,
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user