Skip to content

Commit

Permalink
progress
Browse files Browse the repository at this point in the history
  • Loading branch information
Niko committed Jul 26, 2024
1 parent a61a33d commit 0c73cde
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 5 deletions.
2 changes: 1 addition & 1 deletion decompile/General/zGlobal_DATA.c
Original file line number Diff line number Diff line change
Expand Up @@ -4335,7 +4335,7 @@ struct Data data =
{0x63, 0x400, 0xF368, 0x99F, -0x2d8, 0xDC, 0xA6, 0x0},
},

.unk_80085d0c_LoadSave =
.spinOffset_LoadSave =
{0x155, 0xF55, 0, 0},

.lngIndex_LoadSave =
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -89,9 +89,9 @@ void SelectProfile_Init(u_int flags)
inst->scale[2] = scale;
inst->scale[1] = scale;
inst->scale[0] = scale;
load->inst->next = 0;
load->inst->prev = 0;
load->inst->name = sdata->unk_80085d0c_LoadSave[(n % 3) >> 1]; // ??
load->rot[0] = 0;
load->rot[1] = 0;
load->rot[2] = sdata->spinOffset_LoadSave[(n % 3) >> 1]; // ??

// set rotation (5 direction vectors)
*(int *)&inst->matrix.m[0][0] = 0x1000;
Expand Down
4 changes: 4 additions & 0 deletions ghidra/SelectProfile.c
Original file line number Diff line number Diff line change
Expand Up @@ -397,7 +397,10 @@ void FUN_800485cc(uint param_1)
psVar13 = &DAT_80085c64;

uVar12 = 0;

// = 0x8009A9A0
piVar10 = (int *)DAT_8008d8f4[1];

pbVar9 = &DAT_80085c70;
piVar11 = piVar10 + 2;
do {
Expand Down Expand Up @@ -459,6 +462,7 @@ void FUN_800485cc(uint param_1)
*(undefined2 *)(iVar5 + 0x1e) = uVar3;
*(undefined2 *)(iVar5 + 0x1c) = uVar3;

// rot (x,y,z)
*(undefined2 *)((int)piVar11 + -2) = 0;
*(undefined2 *)(piVar11 + -1) = 0;
*(undefined2 *)piVar11 =
Expand Down
2 changes: 1 addition & 1 deletion include/regionsEXE.h
Original file line number Diff line number Diff line change
Expand Up @@ -2175,7 +2175,7 @@ struct Data
// 80085D0C
// used in the same function as
// MetaDataSaveLoad, but usage is unknown
short unk_80085d0c_LoadSave[4];
short spinOffset_LoadSave[4];

// 80085d14
short lngIndex_LoadSave[4];
Expand Down

0 comments on commit 0c73cde

Please sign in to comment.