moving XInitDevices to ArchHooks so devices are initialized before usb manager initializes
This commit is contained in:
@@ -111,6 +111,12 @@ void EnableExtraRAM()
|
|||||||
WRITEMSRREG( 0x02FF, regVal );
|
WRITEMSRREG( 0x02FF, regVal );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void InitDevices()
|
||||||
|
{
|
||||||
|
XDEVICE_PREALLOC_TYPE xdpt[] = {{XDEVICE_TYPE_GAMEPAD, 4}, {XDEVICE_TYPE_MEMORY_UNIT, 2}};
|
||||||
|
XInitDevices( sizeof(xdpt) / sizeof(XDEVICE_PREALLOC_TYPE), xdpt );
|
||||||
|
}
|
||||||
|
|
||||||
ArchHooks_Xbox::ArchHooks_Xbox()
|
ArchHooks_Xbox::ArchHooks_Xbox()
|
||||||
{
|
{
|
||||||
_set_new_handler(NoMemory);
|
_set_new_handler(NoMemory);
|
||||||
@@ -125,6 +131,8 @@ ArchHooks_Xbox::ArchHooks_Xbox()
|
|||||||
SetupNetwork();
|
SetupNetwork();
|
||||||
|
|
||||||
EnableExtraRAM();
|
EnableExtraRAM();
|
||||||
|
|
||||||
|
InitDevices();
|
||||||
}
|
}
|
||||||
|
|
||||||
static RString XLangID( DWORD Lang )
|
static RString XLangID( DWORD Lang )
|
||||||
|
|||||||
@@ -38,8 +38,6 @@ InputHandler_Xbox::InputHandler_Xbox()
|
|||||||
//
|
//
|
||||||
// Init joysticks
|
// Init joysticks
|
||||||
//
|
//
|
||||||
XDEVICE_PREALLOC_TYPE xdpt[] = {{XDEVICE_TYPE_GAMEPAD, 4}, {XDEVICE_TYPE_MEMORY_UNIT, 2}};
|
|
||||||
XInitDevices( sizeof(xdpt) / sizeof(XDEVICE_PREALLOC_TYPE), xdpt );
|
|
||||||
ZeroMemory( joysticks, sizeof(joysticks) );
|
ZeroMemory( joysticks, sizeof(joysticks) );
|
||||||
|
|
||||||
getHandles();
|
getHandles();
|
||||||
|
|||||||
Reference in New Issue
Block a user