Documentation
¶
Overview ¶
Package gamecheats loads a game's cheats: the database cheats from the emulator's cheats source and the custom cheats from its settings file. Both the Cheats page and the cheat engine use it, so they agree on which cheats exist and which are on.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Custom ¶
type Custom struct {
storage.CustomCheat
Cheat cheats.Cheat
Err error
}
Custom is a custom cheat with its parse result. Cheat is set, with the entry's name, when Err is nil.
func ParseCustom ¶
ParseCustom parses custom cheats
type Set ¶
type Set struct {
Database []cheats.Cheat // cheats from the emulator's source that can be applied
Custom []Custom // custom cheats in settings order
}
Set is a game's cheats
func Load ¶
func Load(gameID string, provider content.CheatsSource, settings *storage.GameSettingsFile, sys cheats.System, bigEndian bool) Set
Load gets a game's database cheats from provider and parses the custom cheats in settings. sys and bigEndian are the core's cheat system and memory byte order. A nil provider, or one with no entry for the game, means the game has no database cheats.