Implement GetBinocReticleFocus

This commit is contained in:
Charles Lombardo 2024-10-28 16:21:40 -04:00
parent 2aab6e70a1
commit f7da2186af
3 changed files with 7 additions and 2 deletions

View File

@ -116,7 +116,7 @@ SetBinocZoom__FP5BINOCf = 0x1365A8; // type:func
FUN_001365f0 = 0x1365F0; // type:func
FUN_00136648 = 0x136648; // type:func
DrawBinoc = 0x1366A0; // type:func
GetBinocReticleFocus = 0x136EC8; // type:func
GetBinocReticleFocus__FP5BINOCPfT1 = 0x136EC8; // type:func
FUN_00136ef8 = 0x136EF8; // type:func
FUN_00136fa8 = 0x136FA8; // type:func
binoc__static_initialization_and_destruction_0 = 0x136FE8; // type:func

View File

@ -16,6 +16,8 @@ struct BINOC : public BLOT {
undefined4 value1;
undefined1 padding_1[8];
float zoom;
float xFocus;
float yFocus;
};
/**

View File

@ -80,7 +80,10 @@ INCLUDE_ASM(const s32, "P2/binoc", FUN_00136648);
INCLUDE_ASM(const s32, "P2/binoc", DrawBinoc);
INCLUDE_ASM(const s32, "P2/binoc", GetBinocReticleFocus);
void GetBinocReticleFocus(BINOC *binoc, float *xFocus, float *yFocus) {
*xFocus = binoc->xFocus + 320.0f;
*yFocus = binoc->yFocus + 180.40001f;
}
INCLUDE_ASM(const s32, "P2/binoc", FUN_00136ef8);