diff options
author | Revo <projectrevotpp@hotmail.com> | 2020-12-18 16:04:53 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-12-18 16:04:53 -0500 |
commit | bbb1fac16bc7e912410b3dc7bbfc5d3067ac19d4 (patch) | |
tree | c8f46f67254d290d854aca645ffcdd5179e5fa6b /include/options.h | |
parent | d45ebc4547e7d8e253f848a010bf6c430a55ba75 (diff) | |
parent | 22c9ea3a992c48fc5c8926902cbde48861195f10 (diff) |
Merge pull request #305 from tgsm/options
decompile Options
Diffstat (limited to 'include/options.h')
-rw-r--r-- | include/options.h | 28 |
1 files changed, 22 insertions, 6 deletions
diff --git a/include/options.h b/include/options.h index 5f7a3d3f..0f8c89ae 100644 --- a/include/options.h +++ b/include/options.h @@ -2,14 +2,30 @@ #define POKEDIAMOND_OPTIONS_H struct Options { - u16 unk0_0:4; - u16 unk0_4:2; - u16 unk0_6:1; - u16 unk0_7:1; - u16 unk0_8:2; - u16 unk0_A:5; + u16 textSpeed:4; + u16 soundMethod:2; + u16 battleStyle:1; + u16 battleScene:1; + u16 buttonMode:2; + u16 frame:5; }; +struct Options * Options_new(u32 heap_id); +void Options_copy(struct Options * src, struct Options * dest); void Options_init(struct Options * options); +void Options_SetButtonModeOnMain(struct SaveBlock2 * sav2, u32 buttonMode); +u16 Options_GetTextSpeed(struct Options * options); +void Options_SetTextSpeed(struct Options * options, u16 textSpeed); +u32 Options_GetTextFrameDelay(struct Options * options); +u16 Options_GetSoundMethod(struct Options * options); +void Options_SetSoundMethod(struct Options * options, u16 soundMethod); +u16 Options_GetBattleScene(struct Options * options); +void Options_SetBattleScene(struct Options * options, u16 battleScene); +u16 Options_GetBattleStyle(struct Options * options); +void Options_SetBattleStyle(struct Options * options, u16 battleStyle); +u16 Options_GetButtonMode(struct Options * options); +void Options_SetButtonMode(struct Options * options, u16 buttonMode); +u16 Options_GetFrame(struct Options * options); +void Options_SetFrame(struct Options * options, u16 frame); #endif //POKEDIAMOND_OPTIONS_H |