Add dummy cdrom ioctl module for other OSes
This commit is contained in:
parent
d5b7a69ff6
commit
f002abe258
3 changed files with 36 additions and 1 deletions
|
|
@ -97,6 +97,10 @@ if OS_LINUX
|
|||
pcem_SOURCES += cdrom-ioctl-linux.c wx-sdl2-display.c
|
||||
endif
|
||||
|
||||
if OS_OTHER
|
||||
pcem_SOURCES += cdrom-ioctl-dummy.c wx-sdl2-display.c
|
||||
endif
|
||||
|
||||
if OS_MACOSX
|
||||
pcem_SOURCES += cdrom-ioctl-osx.c wx-sdl2-display.c
|
||||
pcem_CFLAGS += -DPCEM_RENDER_WITH_TIMER -DPCEM_RENDER_TIMER_LOOP
|
||||
|
|
|
|||
20
src/cdrom-ioctl-dummy.c
Normal file
20
src/cdrom-ioctl-dummy.c
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
/*Dummy CD-ROM support for other OSes*/
|
||||
|
||||
#include <stdint.h>
|
||||
|
||||
int old_cdrom_drive;
|
||||
|
||||
void ioctl_audio_callback(int16_t *output, int len) { }
|
||||
|
||||
void ioctl_audio_stop() { }
|
||||
|
||||
void ioctl_reset() { }
|
||||
|
||||
void ioctl_set_drive(char d) { }
|
||||
|
||||
int ioctl_open(char d)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
void ioctl_close(void) { }
|
||||
Loading…
Reference in a new issue