Fix for moving cdrom_close() as well.
This commit is contained in:
@@ -244,8 +244,9 @@ int cdrom_read_capacity(uint8_t id, uint8_t *cdb, uint8_t *buffer, uint32_t *len
|
||||
#define cdrom_ascq cdrom[id].sense[13]
|
||||
#define cdrom_drive cdrom_drives[id].host_drive
|
||||
|
||||
void cdrom_hard_reset(void);
|
||||
void cdrom_general_init(void);
|
||||
extern void cdrom_close(uint8_t id);
|
||||
extern void cdrom_hard_reset(void);
|
||||
extern void cdrom_general_init(void);
|
||||
|
||||
|
||||
#endif /*EMU_CDROM_H*/
|
||||
|
@@ -8,7 +8,7 @@
|
||||
*
|
||||
* Define the various platform support functions.
|
||||
*
|
||||
* Version: @(#)plat.h 1.0.3 2017/10/10
|
||||
* Version: @(#)plat.h 1.0.4 2017/10/10
|
||||
*
|
||||
* Authors: Miran Grca, <mgrca8@gmail.com>
|
||||
* Fred N. van Kempen, <decwiz@yahoo.com>
|
||||
@@ -46,7 +46,6 @@ extern uint8_t host_cdrom_drive_available_num;
|
||||
extern uint32_t cdrom_capacity;
|
||||
|
||||
extern void cdrom_init_host_drives(void);
|
||||
extern void cdrom_close(uint8_t id);
|
||||
extern void cdrom_eject(uint8_t id);
|
||||
extern void cdrom_reload(uint8_t id);
|
||||
extern void removable_disk_unload(uint8_t id);
|
||||
|
@@ -64,25 +64,6 @@ cdrom_init_host_drives(void)
|
||||
}
|
||||
|
||||
|
||||
void
|
||||
cdrom_close(uint8_t id)
|
||||
{
|
||||
switch (cdrom_drives[id].host_drive) {
|
||||
case 0:
|
||||
null_close(id);
|
||||
break;
|
||||
|
||||
case 200:
|
||||
image_close(id);
|
||||
break;
|
||||
|
||||
default:
|
||||
ioctl_close(id);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
void
|
||||
cdrom_eject(uint8_t id)
|
||||
{
|
||||
|
Reference in New Issue
Block a user