CD-ROM: Optimize Windows IOCTL disc change checking.

This commit is contained in:
OBattler
2025-03-13 21:17:25 +01:00
parent b1a02a6d13
commit 8722fe0080
4 changed files with 28 additions and 23 deletions

View File

@@ -335,6 +335,8 @@ typedef struct cdrom {
uint8_t subch_buffer[96];
int cdrom_sector_size;
/* Only used on Windows hosts for disc change notifications. */
uint8_t host_letter;
/* Needs some extra breathing space in case of overflows. */
uint8_t raw_buffer[4096];
@@ -437,6 +439,8 @@ extern int cdrom_is_empty(const uint8_t id);
extern void cdrom_eject(const uint8_t id);
extern void cdrom_reload(const uint8_t id);
extern int cdrom_assigned_letters;
#ifdef __cplusplus
}
#endif