mirror of
https://git.suyu.dev/suyu/Yucom.git
synced 2026-01-08 23:48:02 +01:00
vrclient: Truncate short VREvent_t structs
This commit is contained in:
parent
b32161679d
commit
46f1a6c236
76 changed files with 371 additions and 353 deletions
|
|
@ -15,14 +15,14 @@ struct winVREvent_t_1013 {
|
|||
} __attribute__ ((ms_struct));
|
||||
#pragma pack(pop)
|
||||
|
||||
void struct_VREvent_t_1013_lin_to_win(void *l, void *w)
|
||||
void struct_VREvent_t_1013_lin_to_win(void *l, void *w, uint32_t sz)
|
||||
{
|
||||
struct winVREvent_t_1013 *win = (struct winVREvent_t_1013 *)w;
|
||||
VREvent_t *lin = (VREvent_t *)l;
|
||||
win->eventType = lin->eventType;
|
||||
win->trackedDeviceIndex = lin->trackedDeviceIndex;
|
||||
win->eventAgeSeconds = lin->eventAgeSeconds;
|
||||
win->data = lin->data;
|
||||
memcpy(&win->data, &lin->data, sz - (((char*)&win->data) - ((char*)win)));
|
||||
}
|
||||
|
||||
void struct_VREvent_t_1013_win_to_lin(void *w, void *l)
|
||||
|
|
@ -44,7 +44,7 @@ struct winVRControllerState001_t_1013 {
|
|||
} __attribute__ ((ms_struct));
|
||||
#pragma pack(pop)
|
||||
|
||||
void struct_VRControllerState001_t_1013_lin_to_win(void *l, void *w)
|
||||
void struct_VRControllerState001_t_1013_lin_to_win(void *l, void *w, uint32_t sz)
|
||||
{
|
||||
struct winVRControllerState001_t_1013 *win = (struct winVRControllerState001_t_1013 *)w;
|
||||
VRControllerState001_t *lin = (VRControllerState001_t *)l;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue