read legacy graphics
This commit is contained in:
@@ -41,6 +41,7 @@ type Data struct {
|
|||||||
TerrorZones []area.ID
|
TerrorZones []area.ID
|
||||||
Quests quest.Quests
|
Quests quest.Quests
|
||||||
KeyBindings KeyBindings
|
KeyBindings KeyBindings
|
||||||
|
LegacyGraphics bool
|
||||||
}
|
}
|
||||||
|
|
||||||
type Room struct {
|
type Room struct {
|
||||||
|
|||||||
@@ -57,6 +57,7 @@ func (gd *GameReader) GetData() data.Data {
|
|||||||
TerrorZones: gd.TerrorZones(),
|
TerrorZones: gd.TerrorZones(),
|
||||||
Quests: gd.getQuests(gameQuestsBytes),
|
Quests: gd.getQuests(gameQuestsBytes),
|
||||||
KeyBindings: gd.GetKeyBindings(),
|
KeyBindings: gd.GetKeyBindings(),
|
||||||
|
LegacyGraphics: gd.LegacyGraphics(),
|
||||||
}
|
}
|
||||||
|
|
||||||
gd.previousRead = d
|
gd.previousRead = d
|
||||||
@@ -189,3 +190,7 @@ func (gd *GameReader) InCharacterSelectionScreen() bool {
|
|||||||
func (gd *GameReader) GetSelectedCharacterName() string {
|
func (gd *GameReader) GetSelectedCharacterName() string {
|
||||||
return gd.Process.ReadStringFromMemory(gd.Process.moduleBaseAddressPtr+0x2149FF4, 0)
|
return gd.Process.ReadStringFromMemory(gd.Process.moduleBaseAddressPtr+0x2149FF4, 0)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func (gd *GameReader) LegacyGraphics() bool {
|
||||||
|
return gd.ReadUInt(gd.moduleBaseAddressPtr+0x21F6388, Uint64) == 1
|
||||||
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user