read legacy graphics

This commit is contained in:
Héctor Giménez
2024-06-04 22:44:23 +09:00
parent e4a8cacb76
commit 019cd9a62d
2 changed files with 16 additions and 10 deletions

View File

@@ -41,6 +41,7 @@ type Data struct {
TerrorZones []area.ID
Quests quest.Quests
KeyBindings KeyBindings
LegacyGraphics bool
}
type Room struct {

View File

@@ -57,6 +57,7 @@ func (gd *GameReader) GetData() data.Data {
TerrorZones: gd.TerrorZones(),
Quests: gd.getQuests(gameQuestsBytes),
KeyBindings: gd.GetKeyBindings(),
LegacyGraphics: gd.LegacyGraphics(),
}
gd.previousRead = d
@@ -189,3 +190,7 @@ func (gd *GameReader) InCharacterSelectionScreen() bool {
func (gd *GameReader) GetSelectedCharacterName() string {
return gd.Process.ReadStringFromMemory(gd.Process.moduleBaseAddressPtr+0x2149FF4, 0)
}
func (gd *GameReader) LegacyGraphics() bool {
return gd.ReadUInt(gd.moduleBaseAddressPtr+0x21F6388, Uint64) == 1
}