Skip to content

Commit

Permalink
Merge pull request #3 from MelonSpeedruns/testing-out-item-replacemen…
Browse files Browse the repository at this point in the history
…t-melon
  • Loading branch information
briaguya-ai authored May 28, 2022
2 parents 4c0c70b + 745b7e0 commit b46e92f
Show file tree
Hide file tree
Showing 11 changed files with 1,779 additions and 4,278 deletions.
7 changes: 7 additions & 0 deletions soh/include/z64save.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@

#include "ultra64.h"
#include "z64math.h"
#include <randomizerTypes.h>

typedef struct {
/* 0x00 */ u8 buttonItems[4];
Expand Down Expand Up @@ -60,6 +61,11 @@ typedef struct {
/* 0x24 */ s32 tempCollectFlags;
} FaroresWindData; // size = 0x28

typedef struct {
RandomizerCheck check;
RandomizerGet get;
} ItemLocation;

typedef struct {
/* 0x0000 */ s32 entranceIndex; // start of `save` substruct, originally called "memory"
/* 0x0004 */ s32 linkAge; // 0: Adult; 1: Child
Expand Down Expand Up @@ -173,6 +179,7 @@ typedef struct {
/* 0x1420 */ s16 worldMapArea;
/* 0x1422 */ s16 sunsSongState; // controls the effects of suns song
/* 0x1424 */ s16 healthAccumulator;
ItemLocation itemLocations[512];
} SaveContext; // size = 0x1428

typedef enum {
Expand Down
Loading

0 comments on commit b46e92f

Please sign in to comment.