Skip to content

Commit

Permalink
Fix AKA31 on Linux.
Browse files Browse the repository at this point in the history
  • Loading branch information
sarah-walker-pcem committed Oct 15, 2019
1 parent 83c62c3 commit 20f8890
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
7 changes: 4 additions & 3 deletions podules/aka31/src/Makefile.linux
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
VPATH = . ../../common/cdrom ../../common/sound
CPP = g++
CC = gcc
OBJ = aka31.o d71071l.o hdd_file.o scsi.o scsi_config.o scsi_hd.o wd33c93a.o
LIBS = -shared
CFLAGS = $(INCS) -DBUILDING_DLL=1 -I../../../src -fPIC -Wall -Werror
OBJ = aka31.o cdrom-linux-ioctl.o d71071l.o hdd_file.o scsi.o scsi_config.o scsi_cd.o scsi_hd.o sound_openal.o wd33c93a.o
LIBS = -shared -lopenal
CFLAGS = $(INCS) -DBUILDING_DLL=1 -I../../../src -I../../common/cdrom -I../../common/sound -g3 -fPIC

all: aka31

Expand Down
1 change: 1 addition & 0 deletions podules/aka31/src/scsi_cd.c
Original file line number Diff line number Diff line change
Expand Up @@ -435,6 +435,7 @@ static void *scsi_cd_init(scsi_bus_t *bus, int id, podule_t *podule)
sprintf(config_name, "device%i_fn", id);
fn = podule_callbacks->config_get_string(podule, config_name, "");
ioctl_set_drive(fn);
ioctl_open(0);

page_flags[GPMODE_CDROM_AUDIO_PAGE] &= 0xFD; /* Clear changed flag for CDROM AUDIO mode page. */
memset(mode_pages_in[GPMODE_CDROM_AUDIO_PAGE], 0, 256); /* Clear the page itself. */
Expand Down

0 comments on commit 20f8890

Please sign in to comment.