cleanups..

This commit is contained in:
espes 2013-11-13 21:15:52 +11:00
parent 41fda5fc25
commit 8b3628cb39
3 changed files with 3 additions and 4 deletions

View File

@ -31,10 +31,10 @@
#include "hw/xbox/nv2a_vsh.h"
#define VSH_D3DSCM_CORRECTION 96
#define VSH_TOKEN_SIZE 4
typedef enum {
FLD_ILU = 0,
FLD_MAC,

View File

@ -36,9 +36,6 @@
// Xbox vertex read/write shader
#define VSH_VERSION_XVSW 0x7778
#define VSH_D3DSCM_CORRECTION 96
QString* vsh_translate(uint16_t version,
uint32_t *tokens, unsigned int tokens_length);

View File

@ -227,6 +227,7 @@ static void usb_xid_handle_control(USBDevice *dev, USBPacket *p,
case ClassInterfaceRequest | HID_GET_REPORT:
DPRINTF("xid GET_REPORT %x\n", value);
if (value == 0x100) { /* input */
assert(s->in_state.bLength <= length);
memcpy(data, &s->in_state, s->in_state.bLength);
p->actual_length = s->in_state.bLength;
} else {
@ -241,6 +242,7 @@ static void usb_xid_handle_control(USBDevice *dev, USBPacket *p,
case InterfaceRequestVendor | USB_REQ_GET_DESCRIPTOR:
DPRINTF("xid GET_DESCRIPTOR %x\n", value);
if (value == 0x4200) {
assert(s->xid_desc->bLength <= length);
memcpy(data, s->xid_desc, s->xid_desc->bLength);
p->actual_length = s->xid_desc->bLength;
} else {