summaryrefslogtreecommitdiff
path: root/emulators/gens/patches/patch-ac
diff options
context:
space:
mode:
authordillo <dillo@pkgsrc.org>2004-07-26 18:23:22 +0000
committerdillo <dillo@pkgsrc.org>2004-07-26 18:23:22 +0000
commita53ec6fdb9056e972659b66e659813eb7f0bcd31 (patch)
tree77f63bc6ac0f6a77cca0784fd00b1782bbd9753f /emulators/gens/patches/patch-ac
parente45d754f2e644a14adb2f70f1930191009ec01e8 (diff)
downloadpkgsrc-a53ec6fdb9056e972659b66e659813eb7f0bcd31.tar.gz
import gens 2.12rc3 from pkgsrc-wip:
Gens is an emulator of Sega's 16 bit consoles: Genesis (a.k.a Megadrive) and Sega CD (a.k.a Mega CD). For Sega CD, you will need BIOS ROM images.
Diffstat (limited to 'emulators/gens/patches/patch-ac')
-rw-r--r--emulators/gens/patches/patch-ac118
1 files changed, 118 insertions, 0 deletions
diff --git a/emulators/gens/patches/patch-ac b/emulators/gens/patches/patch-ac
new file mode 100644
index 00000000000..f4cbadf9e79
--- /dev/null
+++ b/emulators/gens/patches/patch-ac
@@ -0,0 +1,118 @@
+$NetBSD: patch-ac,v 1.1.1.1 2004/07/26 18:23:23 dillo Exp $
+
+--- src/gens/segacd/cd_aspi.c.orig 2004-05-18 22:34:00.000000000 +0200
++++ src/gens/segacd/cd_aspi.c
+@@ -8,6 +8,8 @@
+ #include "cd_aspi.h"
+ #include "mem_s68k.h"
+
++#ifdef linux
++
+ #define HIBYTE(x) x >> 8
+ #define LOBYTE(x) x & 0xff
+ void Sleep (int i);
+@@ -2878,3 +2880,104 @@ Fill_SCD_TOC_Zero (void)
+
+ CD_Present = 0;
+ }
++
++#else
++
++int CUR_DEV;
++int Num_CD_Drive;
++
++int
++ASPI_Close_Tray_CDD_cC_COMP (SRB_ExecSCSICmd * s)
++{
++ return -1;
++}
++
++int
++ASPI_End (void)
++{
++ return 1;
++}
++
++int
++ASPI_Fast_Seek_COMP (SRB_ExecSCSICmd * s)
++{
++ return 0;
++}
++
++void
++ASPI_Flush_Cache_CDC (void)
++{
++ return;
++}
++
++int
++ASPI_Init (void)
++{
++ Num_CD_Drive = 0;
++ return 0;
++}
++
++int
++ASPI_Lock (int flock)
++{
++ return 5;
++}
++
++int
++ASPI_Open_Tray_CDD_cD_COMP (SRB_ExecSCSICmd * s)
++{
++ return -1;
++}
++
++void
++ASPI_Read_One_LBA_CDC (void)
++{
++ return;
++}
++
++void
++ASPI_Reset_Drive (char *buf)
++{
++ return;
++}
++
++int
++ASPI_Seek (int pos, int async,
++ int (*PostProc) (struct tagSRB32_ExecSCSICmd *))
++{
++ return 5;
++}
++
++int
++ASPI_Seek_CDD_c4_COMP (SRB_ExecSCSICmd * s)
++{
++ return -1;
++}
++
++int
++ASPI_Star_Stop_Unit (int op, int imm, int async,
++ int (*PostProc) (struct tagSRB32_ExecSCSICmd *))
++{
++ return 5;
++}
++
++int
++ASPI_Stop_CDD_c1_COMP (SRB_ExecSCSICmd * s)
++{
++ return 0;
++}
++
++int
++ASPI_Stop_Play_Scan (int async,
++ int (*PostProc) (struct tagSRB32_ExecSCSICmd *))
++{
++ return 5;
++}
++
++void
++Wait_Read_Complete (void)
++{
++ return;
++}
++
++#endif