Skip to content

Commit

Permalink
Implement InitBinoc
Browse files Browse the repository at this point in the history
  • Loading branch information
t895 committed Oct 24, 2024
1 parent 1907a59 commit db25a13
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
7 changes: 7 additions & 0 deletions include/binoc.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,13 @@
#define BINOC_H

#include "common.h"
#include <screen.h>

struct BINOC : public BLOT {
undefined1 padding[0x90];
float value0;
undefined4 value1;
};

/**
* @brief Horizontal text justification.
Expand Down
8 changes: 7 additions & 1 deletion src/P2/binoc.c
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,13 @@ INCLUDE_ASM(const s32, "P2/binoc", InitBei);

INCLUDE_ASM(const s32, "P2/binoc", GEvaluateBei);

INCLUDE_ASM(const s32, "P2/binoc", InitBinoc__FP5BINOC5BLOTK);
void InitBinoc(BINOC *binoc, BLOTK blotk) {
binoc->dx = 640.0f;
binoc->dy = 492.80001f;
binoc->value0 = 15.0f;
binoc->value1 = 0x80ffffff;
InitBlot(binoc, blotk);
}

INCLUDE_ASM(const s32, "P2/binoc", ResetBinoc__FP5BINOC);

Expand Down

0 comments on commit db25a13

Please sign in to comment.