Fixed a problem when loading joystick drivers: When an install error occurred,
the driver wasn't removed from memory. git-svn-id: svn://svn.cc65.org/cc65/trunk@3752 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
@@ -4,8 +4,6 @@
|
||||
; Common functions of the joystick API.
|
||||
;
|
||||
|
||||
.export joy_clear_ptr
|
||||
|
||||
.importzp ptr1
|
||||
.interruptor joy_irq ; Export as IRQ handler
|
||||
|
||||
@@ -117,7 +115,7 @@ _joy_uninstall:
|
||||
|
||||
jsr joy_uninstall ; Call the driver routine
|
||||
|
||||
joy_clear_ptr: ; External entry point
|
||||
_joy_clear_ptr: ; External entry point
|
||||
lda #0
|
||||
sta _joy_drv
|
||||
sta _joy_drv+1 ; Clear the driver pointer
|
||||
|
||||
Reference in New Issue
Block a user