mirror of
https://github.com/TheOnlyZac/sly1.git
synced 2024-11-23 05:39:54 +00:00
Implement GetBinocReticleFocus
This commit is contained in:
parent
2aab6e70a1
commit
f7da2186af
@ -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
|
||||
|
@ -16,6 +16,8 @@ struct BINOC : public BLOT {
|
||||
undefined4 value1;
|
||||
undefined1 padding_1[8];
|
||||
float zoom;
|
||||
float xFocus;
|
||||
float yFocus;
|
||||
};
|
||||
|
||||
/**
|
||||
|
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user