Skip to content

Commit

Permalink
fix endianess issue with camera setting data
Browse files Browse the repository at this point in the history
  • Loading branch information
Archez committed Feb 18, 2024
1 parent d0b0974 commit 6fdf00c
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions soh/src/code/z_camera_data.inc
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,11 @@ typedef struct {
union {
u32 unk_00;
struct {
u32 unk_bit0 : 1;
u32 unk_bit1 : 1;
u32 validModes : 30;
// SoH [Port] These bitfield values are unused and led to shifting in validModes for little endian systems
// Removing those so that validModes can be a complete 32 bit value
// u32 unk_bit0 : 1;
// u32 unk_bit1 : 1;
u32 validModes;
};
};
CameraMode* cameraModes;
Expand Down

0 comments on commit 6fdf00c

Please sign in to comment.