diff --git a/include/binoc.h b/include/binoc.h index 94edc7d2..068f9332 100644 --- a/include/binoc.h +++ b/include/binoc.h @@ -7,6 +7,13 @@ #define BINOC_H #include "common.h" +#include + +struct BINOC : public BLOT { + undefined1 padding[0x90]; + float value0; + undefined4 value1; +}; /** * @brief Horizontal text justification. diff --git a/src/P2/binoc.c b/src/P2/binoc.c index 20e50439..226b6614 100644 --- a/src/P2/binoc.c +++ b/src/P2/binoc.c @@ -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);