Lastgamename/lastgamepassword (#56)

* Lastgamename/lastgamepassword

Credits to Gogigogi1

* Remove //outdated ckm

* Removing offset since we have direct address
This commit is contained in:
elb
2024-12-12 11:16:29 -05:00
committed by GitHub
parent 823a0a05b0
commit 889fa020f2

View File

@@ -245,13 +245,11 @@ func (gd *GameReader) IsInCharacterCreationScreen() bool {
}
func (gd *GameReader) LastGameName() string {
// outdated
return gd.ReadStringFromMemory(gd.moduleBaseAddressPtr+0x29DBD10+0x8, 0)
return gd.ReadStringFromMemory(gd.moduleBaseAddressPtr+0x2587FB8, 0)
}
func (gd *GameReader) LastGamePass() string {
// outdated
return gd.ReadStringFromMemory(gd.moduleBaseAddressPtr+0x29DBD10+0x60, 0)
return gd.ReadStringFromMemory(gd.moduleBaseAddressPtr+0x2588018, 0)
}
func (gd *GameReader) FPS() int {