update couple of addresses

This commit is contained in:
Héctor Giménez
2024-08-21 09:07:43 +09:00
parent 5a01fd3214
commit 444b52f562
3 changed files with 6 additions and 6 deletions

View File

@@ -192,15 +192,15 @@ func (gd *GameReader) getStatsList(statListPtr uintptr) stat.Stats {
func (gd *GameReader) InCharacterSelectionScreen() bool {
uiBase := gd.Process.moduleBaseAddressPtr + gd.offset.UI - 0xA
return gd.Process.ReadUInt(uiBase, Uint8) != 1 && gd.Process.ReadUInt(gd.moduleBaseAddressPtr+0x214A5A6, Uint8) == 0
return gd.Process.ReadUInt(uiBase, Uint8) != 1 && gd.Process.ReadUInt(gd.moduleBaseAddressPtr+2136526, Uint8) == 0
}
func (gd *GameReader) GetSelectedCharacterName() string {
return gd.Process.ReadStringFromMemory(gd.Process.moduleBaseAddressPtr+0x2149FF4, 0)
return gd.Process.ReadStringFromMemory(gd.Process.moduleBaseAddressPtr+0x2135F74, 0)
}
func (gd *GameReader) LegacyGraphics() bool {
return gd.ReadUInt(gd.moduleBaseAddressPtr+0x21F6388, Uint64) == 1
return gd.ReadUInt(gd.moduleBaseAddressPtr+0x21E2308, Uint64) == 1
}
func (gd *GameReader) IsOnline() bool {

View File

@@ -8,8 +8,8 @@ import (
)
func (gd *GameReader) GetKeyBindings() data.KeyBindings {
blob := gd.ReadBytesFromMemory(gd.moduleBaseAddressPtr+0x1e0e934, 0x500)
blobSkills := gd.ReadBytesFromMemory(gd.moduleBaseAddressPtr+0x21f6a30, 0x500)
blob := gd.ReadBytesFromMemory(gd.moduleBaseAddressPtr+0x1DF9494, 0x500)
blobSkills := gd.ReadBytesFromMemory(gd.moduleBaseAddressPtr+0x21E29B0, 0x500)
skillsKB := [16]data.SkillBinding{}
for i := 0; i < 7; i++ {

View File

@@ -88,7 +88,7 @@ func (gd *GameReader) GetPlayerUnit(mainPlayerUnit RawPlayerUnit) data.PlayerUni
availableWPs := make([]area.ID, 0)
// Probably there is a better place to pick up those values, since this seems to be very tied to the UI
wpList := gd.Process.ReadBytesFromMemory(gd.moduleBaseAddressPtr+0x2154EA0, 0x48)
wpList := gd.Process.ReadBytesFromMemory(gd.moduleBaseAddressPtr+0x2140E20, 0x48)
for i := 0; i < 0x48; i = i + 8 {
a := binary.LittleEndian.Uint32(wpList[i : i+4])
available := binary.LittleEndian.Uint32(wpList[i+4 : i+8])