Small Update (#34)

- Updated Hover Pattern
- Updated Selected Character offset
This commit is contained in:
Arto Simonyan
2024-08-21 08:16:51 +03:00
committed by GitHub
parent 444b52f562
commit 6bd1cd033f
2 changed files with 2 additions and 2 deletions

View File

@@ -196,7 +196,7 @@ func (gd *GameReader) InCharacterSelectionScreen() bool {
}
func (gd *GameReader) GetSelectedCharacterName() string {
return gd.Process.ReadStringFromMemory(gd.Process.moduleBaseAddressPtr+0x2135F74, 0)
return gd.Process.ReadStringFromMemory(gd.Process.moduleBaseAddressPtr+0x2A01A50, 0)
}
func (gd *GameReader) LegacyGraphics() bool {

View File

@@ -32,7 +32,7 @@ func calculateOffsets(process Process) Offset {
uiOffsetPtr := (pattern - process.moduleBaseAddressPtr) + 10 + uintptr(uiOffset)
// Hover
pattern = process.FindPattern(memory, "\xc6\x84\xc2\x00\x00\x00\x00\x00\x48\x8b\x74\x24\x00", "xxx?????xxxx?")
pattern = process.FindPattern(memory, "\xc6\x84\xc2\x00\x00\x00\x00\x00\x48\x8b\x74", "xxx?????xxx")
hoverOffset := process.ReadUInt(pattern+3, Uint32) - 1
// Expansion