mirror of https://github.com/xemu-project/xemu.git
cleanups..
This commit is contained in:
parent
41fda5fc25
commit
8b3628cb39
|
@ -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,
|
||||
|
|
|
@ -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);
|
||||
|
||||
|
|
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue