Working on loadable mouse drivers
git-svn-id: svn://svn.cc65.org/cc65/trunk@2953 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
@@ -42,7 +42,13 @@
|
||||
|
||||
|
||||
|
||||
unsigned char __fastcall__ mouse_load_driver (const char* name)
|
||||
/* Use static local variables, since the module is not reentrant anyway */
|
||||
#pragma staticlocals (on);
|
||||
|
||||
|
||||
|
||||
unsigned char __fastcall__ mouse_load_driver (const struct mouse_callbacks* c,
|
||||
const char* name)
|
||||
/* Load a mouse driver and return an error code */
|
||||
{
|
||||
static struct mod_ctrl ctrl = {
|
||||
@@ -69,7 +75,7 @@ unsigned char __fastcall__ mouse_load_driver (const char* name)
|
||||
if (Res == MLOAD_OK) {
|
||||
|
||||
/* Check the driver signature, install the driver */
|
||||
return mouse_install (ctrl.module);
|
||||
return mouse_install (c, ctrl.module);
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user