mirror of
https://github.com/zeldaret/oot.git
synced 2024-11-25 09:45:02 +00:00
update Sram_InitDebugSave
This commit is contained in:
parent
dae30ac279
commit
b26ccfb992
2 changed files with 11 additions and 2 deletions
|
@ -477,6 +477,8 @@ typedef enum LinkAge {
|
|||
#define GET_EVENTCHKINF_VAR(flag) (gSaveContext.save.info.eventChkInf[(flag) >> 4])
|
||||
#define GET_EVENTCHKINF_MASK(flag) (1 << ((flag) & 0xF))
|
||||
|
||||
#define EVENTCHKINF_00_UNUSED 0x00
|
||||
#define EVENTCHKINF_01_UNUSED 0x01
|
||||
#define EVENTCHKINF_02 0x02
|
||||
#define EVENTCHKINF_03 0x03
|
||||
#define EVENTCHKINF_04 0x04
|
||||
|
|
|
@ -325,8 +325,15 @@ void Sram_InitDebugSave(void) {
|
|||
gSaveContext.save.info.horseData.pos.y = 72;
|
||||
gSaveContext.save.info.horseData.pos.z = 5497;
|
||||
gSaveContext.save.info.horseData.angle = -0x6AD9;
|
||||
gSaveContext.save.info.infTable[0] |= 0x5009;
|
||||
gSaveContext.save.info.eventChkInf[0] |= 0x123F;
|
||||
gSaveContext.save.info.infTable[0] |= GET_INFTABLE_MASK(INFTABLE_00) | GET_INFTABLE_MASK(INFTABLE_03) |
|
||||
GET_INFTABLE_MASK(INFTABLE_0C) | GET_INFTABLE_MASK(INFTABLE_0E);
|
||||
|
||||
gSaveContext.save.info.eventChkInf[0] |=
|
||||
GET_EVENTCHKINF_MASK(EVENTCHKINF_00_UNUSED) | GET_EVENTCHKINF_MASK(EVENTCHKINF_01_UNUSED) | GET_EVENTCHKINF_MASK(EVENTCHKINF_02) |
|
||||
GET_EVENTCHKINF_MASK(EVENTCHKINF_03) | GET_EVENTCHKINF_MASK(EVENTCHKINF_04) |
|
||||
GET_EVENTCHKINF_MASK(EVENTCHKINF_05) | GET_EVENTCHKINF_MASK(EVENTCHKINF_09) |
|
||||
GET_EVENTCHKINF_MASK(EVENTCHKINF_0C);
|
||||
|
||||
SET_EVENTCHKINF(EVENTCHKINF_80);
|
||||
SET_EVENTCHKINF(EVENTCHKINF_C4);
|
||||
|
||||
|
|
Loading…
Reference in a new issue