- fixed busmouse usage (wrong parameter)

This commit is contained in:
Volker Ruppert 2006-05-07 09:34:51 +00:00
parent ae6c38b202
commit a419ec3423

View File

@ -1,5 +1,5 @@
/////////////////////////////////////////////////////////////////////////
// $Id: devices.cc,v 1.98 2006-04-15 17:03:59 vruppert Exp $
// $Id: devices.cc,v 1.99 2006-05-07 09:34:51 vruppert Exp $
/////////////////////////////////////////////////////////////////////////
//
// Copyright (C) 2002 MandrakeSoft S.A.
@ -105,7 +105,7 @@ void bx_devices_c::init(BX_MEM_C *newmem)
{
unsigned i;
BX_DEBUG(("Init $Id: devices.cc,v 1.98 2006-04-15 17:03:59 vruppert Exp $"));
BX_DEBUG(("Init $Id: devices.cc,v 1.99 2006-05-07 09:34:51 vruppert Exp $"));
mem = newmem;
/* set no-default handlers, will be overwritten by the real default handler */
@ -159,7 +159,7 @@ void bx_devices_c::init(BX_MEM_C *newmem)
PLUG_load_plugin(harddrv, PLUGTYPE_OPTIONAL);
PLUG_load_plugin(keyboard, PLUGTYPE_OPTIONAL);
#if BX_SUPPORT_BUSMOUSE
if (SIM->get_param_bool(BXPN_MOUSE_ENABLED)->get() == BX_MOUSE_TYPE_BUS) {
if (SIM->get_param_enum(BXPN_MOUSE_TYPE)->get() == BX_MOUSE_TYPE_BUS) {
PLUG_load_plugin(busmouse, PLUGTYPE_OPTIONAL);
}
#endif