head 1.7; access; symbols pkgsrc-2019Q1:1.6.0.102 pkgsrc-2019Q1-base:1.6 pkgsrc-2018Q4:1.6.0.100 pkgsrc-2018Q4-base:1.6 pkgsrc-2018Q3:1.6.0.98 pkgsrc-2018Q3-base:1.6 pkgsrc-2018Q2:1.6.0.96 pkgsrc-2018Q2-base:1.6 pkgsrc-2018Q1:1.6.0.94 pkgsrc-2018Q1-base:1.6 pkgsrc-2017Q4:1.6.0.92 pkgsrc-2017Q4-base:1.6 pkgsrc-2017Q3:1.6.0.90 pkgsrc-2017Q3-base:1.6 pkgsrc-2017Q2:1.6.0.86 pkgsrc-2017Q2-base:1.6 pkgsrc-2017Q1:1.6.0.84 pkgsrc-2017Q1-base:1.6 pkgsrc-2016Q4:1.6.0.82 pkgsrc-2016Q4-base:1.6 pkgsrc-2016Q3:1.6.0.80 pkgsrc-2016Q3-base:1.6 pkgsrc-2016Q2:1.6.0.78 pkgsrc-2016Q2-base:1.6 pkgsrc-2016Q1:1.6.0.76 pkgsrc-2016Q1-base:1.6 pkgsrc-2015Q4:1.6.0.74 pkgsrc-2015Q4-base:1.6 pkgsrc-2015Q3:1.6.0.72 pkgsrc-2015Q3-base:1.6 pkgsrc-2015Q2:1.6.0.70 pkgsrc-2015Q2-base:1.6 pkgsrc-2015Q1:1.6.0.68 pkgsrc-2015Q1-base:1.6 pkgsrc-2014Q4:1.6.0.66 pkgsrc-2014Q4-base:1.6 pkgsrc-2014Q3:1.6.0.64 pkgsrc-2014Q3-base:1.6 pkgsrc-2014Q2:1.6.0.62 pkgsrc-2014Q2-base:1.6 pkgsrc-2014Q1:1.6.0.60 pkgsrc-2014Q1-base:1.6 pkgsrc-2013Q4:1.6.0.58 pkgsrc-2013Q4-base:1.6 pkgsrc-2013Q3:1.6.0.56 pkgsrc-2013Q3-base:1.6 pkgsrc-2013Q2:1.6.0.54 pkgsrc-2013Q2-base:1.6 pkgsrc-2013Q1:1.6.0.52 pkgsrc-2013Q1-base:1.6 pkgsrc-2012Q4:1.6.0.50 pkgsrc-2012Q4-base:1.6 pkgsrc-2012Q3:1.6.0.48 pkgsrc-2012Q3-base:1.6 pkgsrc-2012Q2:1.6.0.46 pkgsrc-2012Q2-base:1.6 pkgsrc-2012Q1:1.6.0.44 pkgsrc-2012Q1-base:1.6 pkgsrc-2011Q4:1.6.0.42 pkgsrc-2011Q4-base:1.6 pkgsrc-2011Q3:1.6.0.40 pkgsrc-2011Q3-base:1.6 pkgsrc-2011Q2:1.6.0.38 pkgsrc-2011Q2-base:1.6 pkgsrc-2011Q1:1.6.0.36 pkgsrc-2011Q1-base:1.6 pkgsrc-2010Q4:1.6.0.34 pkgsrc-2010Q4-base:1.6 pkgsrc-2010Q3:1.6.0.32 pkgsrc-2010Q3-base:1.6 pkgsrc-2010Q2:1.6.0.30 pkgsrc-2010Q2-base:1.6 pkgsrc-2010Q1:1.6.0.28 pkgsrc-2010Q1-base:1.6 pkgsrc-2009Q4:1.6.0.26 pkgsrc-2009Q4-base:1.6 pkgsrc-2009Q3:1.6.0.24 pkgsrc-2009Q3-base:1.6 pkgsrc-2009Q2:1.6.0.22 pkgsrc-2009Q2-base:1.6 pkgsrc-2009Q1:1.6.0.20 pkgsrc-2009Q1-base:1.6 pkgsrc-2008Q4:1.6.0.18 pkgsrc-2008Q4-base:1.6 pkgsrc-2008Q3:1.6.0.16 pkgsrc-2008Q3-base:1.6 cube-native-xorg:1.6.0.14 cube-native-xorg-base:1.6 pkgsrc-2008Q2:1.6.0.12 pkgsrc-2008Q2-base:1.6 cwrapper:1.6.0.10 pkgsrc-2008Q1:1.6.0.8 pkgsrc-2008Q1-base:1.6 pkgsrc-2007Q4:1.6.0.6 pkgsrc-2007Q4-base:1.6 pkgsrc-2007Q3:1.6.0.4 pkgsrc-2007Q3-base:1.6 pkgsrc-2007Q2:1.6.0.2 pkgsrc-2007Q2-base:1.6 pkgsrc-2007Q1:1.5.0.28 pkgsrc-2007Q1-base:1.5 pkgsrc-2006Q4:1.5.0.26 pkgsrc-2006Q4-base:1.5 pkgsrc-2006Q3:1.5.0.24 pkgsrc-2006Q3-base:1.5 pkgsrc-2006Q2:1.5.0.22 pkgsrc-2006Q2-base:1.5 pkgsrc-2006Q1:1.5.0.20 pkgsrc-2006Q1-base:1.5 pkgsrc-2005Q4:1.5.0.18 pkgsrc-2005Q4-base:1.5 pkgsrc-2005Q3:1.5.0.16 pkgsrc-2005Q3-base:1.5 pkgsrc-2005Q2:1.5.0.14 pkgsrc-2005Q2-base:1.5 pkgsrc-2005Q1:1.5.0.12 pkgsrc-2005Q1-base:1.5 pkgsrc-2004Q4:1.5.0.10 pkgsrc-2004Q4-base:1.5 pkgsrc-2004Q3:1.5.0.8 pkgsrc-2004Q3-base:1.5 pkgsrc-2004Q2:1.5.0.6 pkgsrc-2004Q2-base:1.5 pkgsrc-2004Q1:1.5.0.4 pkgsrc-2004Q1-base:1.5 pkgsrc-2003Q4:1.5.0.2 pkgsrc-2003Q4-base:1.5 buildlink2-base:1.5 netbsd-1-4-PATCH002:1.3 pkgsrc-base:1.1.1.1 TNF:1.1.1; locks; strict; comment @# @; 1.7 date 2019.06.18.20.50.05; author nia; state dead; branches; next 1.6; commitid A0Ji5SWseBf39IrB; 1.6 date 2007.06.17.07.42.48; author wiz; state Exp; branches; next 1.5; 1.5 date 2000.07.02.01.05.15; author wiz; state dead; branches; next 1.4; 1.4 date 2000.06.03.10.57.12; author wiz; state Exp; branches; next 1.3; 1.3 date 2000.02.20.18.15.15; author wiz; state Exp; branches; next 1.2; 1.2 date 2000.02.14.02.44.35; author wiz; state Exp; branches; next 1.1; 1.1 date 2000.02.13.23.28.07; author wiz; state Exp; branches 1.1.1.1; next ; 1.1.1.1 date 2000.02.13.23.28.07; author wiz; state Exp; branches; next ; desc @@ 1.7 log @Remove emulators/darcnes. - Build broken. - HOMEPAGE dead. - No updates for nearly two decades (release is from ~2001). - Poor quality emulation (at least according to the DESCR full of typos) - Strange license. Usable alternatives: emulators/mednafen, emulators/retroarch, emulators/blastem... This has a Makefile.common, but it's only included by a package in wip. @ text @$NetBSD: patch-ac,v 1.6 2007/06/17 07:42:48 wiz Exp $ --- ui.h.orig 2000-06-29 01:06:05.000000000 +0000 +++ ui.h @@@@ -37,7 +37,7 @@@@ extern shutdown_t dn_shutdown; struct joypad_button_template { int num_buttons; - unsigned long buttons[0]; + unsigned long buttons[20]; /* shouldn't need more than that */ }; struct joypad { @ 1.6 log @Add patch from Magnus Henoch in PR 36502 to make keys work again. Bump PKGREVISION. @ text @d1 1 a1 1 $NetBSD$ @ 1.5 log @Update darcnes to 20000625. Changes from the web-page: o Added driver-specific menu support to the X version. o Broke all non-X versions (what, you didn't see this coming?). o Added a reset menu item for the Apple ][ driver (it's now somewhat usable). o Fixed unix sound and CD interfaces to automatically detect what type of system to compile for. o Added support for Inserting/Removing FDS disks, and changing which side is up. o Fixed "Error 24" problem reading many FDS disks (still need write support and timer IRQs). o Fixed GTK version (yes, this one is tested). o Fixed Makefile to allow overriding gtk-config (necessary for my system). o More tweaks to the 68000 core (no it doesn't work). o Cleaned up mapper 23 code (untested). o Removed mapper vsync hooks (they weren't being used). o Fixed NES palette mirroring (longstanding oops). o More untested fixes to the Allegro and SVGALib ports (let's hope they work this time). @ text @d1 1 a1 1 $NetBSD: patch-ac,v 1.4 2000/06/03 10:57:12 wiz Exp $ d3 3 a5 3 --- snd_unix.c.orig Sun Apr 9 06:49:13 2000 +++ snd_unix.c Thu Jun 1 02:43:03 2000 @@@@ -8,6 +8,6 @@@@ d7 5 a11 5 /* #define SOUND_LINUX */ /* use linux sound header */ -#define SOUND_FREEBSD /* use freebsd sound header */ -/* #define SOUND_NETBSD */ /* use netbsd sound system */ +/* #define SOUND_FREEBSD */ /* use freebsd sound header */ +#define SOUND_NETBSD /* use netbsd sound system */ d13 1 a13 1 #ifdef SOUND_LINUX @ 1.4 log @Update to 2000-05-30. Changes since the last version, from the authors web page: Moved some event queue code out from pce.c to event.[ch]. Added automatic dependancy support to the Makefile. Cleaned several things up to make porting easier. Cleaned several things up to make cross-compilation easier. Changed a couple headers to compile cleanly with a C++ compiler. Added support for expansion cards to the Apple ][ emulation. Added support for the language card to the Apple ][ emulation. Added code to load more roms to the Apple ][ emulation. Added preliminary Apple ][ disk support (can't use it without gdb, though). Fixed color on Apple ][ text mode. Added Apple ][ hires graphics mode. Added a first approximation of Apple ][ lores graphics mode. Added IRQ support to the emu68k core (no, genesis emulation still doesn't work). Added a new 6502 core (only used on NES right now, may be slightly buggy). Made many improvements/fixes to the emu68k core (no, it _still_ doesn't work). Fixed genesis memory access to mask down to 24 bit addresses. Fixed Apple ][ space bar key. Removed the (unused) m6280 core. Changed most NES mappers to not need to know how large the PRG ROM is. Cleaned up the NES sprite renderer slightly. Changed the video interface to not use procpointers. @ text @d1 1 a1 1 $NetBSD$ @ 1.3 log @Updated darcnes to 2000-02-19. Changes: o Unified cd_freebsd.c and cd_linux.c into cd_unix.c. o Added support for NetBSD CDROM (untested), and sound interfaces (thanks to Thomas Klausner for the NetBSD changes). o Changed the nes bank 4 and 6 I/O hooks. o Fixed FDS mapper to compile again. o Fixed some problems with the PCE timer. o Changed the PCE VDP interface not to use procpointers. o Added clipping sprites to the right side of the screen to the PCE VDP. o Removed the old (disabled) ROM type identification routine. o Fixed the battery file handling to not use a cheap hack to get the filename (this breaks all gg savegames until you rename the battery file). @ text @d3 3 a5 3 --- ./snd_unix.c.orig Mon Feb 14 03:04:13 2000 +++ ./snd_unix.c Sun Feb 20 15:41:22 2000 @@@@ -8,7 +8,7 @@@@ a13 1 #define SOUND_HEADER @ 1.2 log @First try at making darcnes work on non-i386-platforms @ text @d3 3 a5 3 --- ./snd_unix.c.orig Wed Jan 26 21:22:18 2000 +++ ./snd_unix.c Mon Feb 14 00:38:09 2000 @@@@ -8,13 +8,21 @@@@ d9 1 a14 99 +#define SOUND_DEVICE "/dev/dsp" #endif #ifdef SOUND_FREEBSD #define SOUND_HEADER +#define SOUND_DEVICE "/dev/dsp" +#endif + +#ifdef SOUND_NETBSD +#define SOUND_HEADER +#define SOUND_DEVICE "/dev/sound" #endif #include @@@@ -66,16 +74,21 @@@@ int snd_open(int samples_per_sync, int sample_rate) { - int tmp; int result; +#if defined(SOUND_LINUX) || defined(SOUND_FREEBSD) + int tmp; int sound_rate; int sound_frag; +#endif +#ifdef SOUND_NETBSD + audio_info_t info; +#endif waveptr = 0; wavflag = 0; - printf("opening /dev/dsp..."); - sound_fd = open("/dev/dsp", O_WRONLY); + printf("opening "SOUND_DEVICE"..."); + sound_fd = open(SOUND_DEVICE, O_WRONLY); if (sound_fd < 0) { perror("failed"); sound_fd = 0; @@@@ -83,7 +96,8 @@@@ } else { printf("done.\n"); } - + +#if defined(SOUND_LINUX) || defined(SOUND_FREEBSD) printf("setting unsigned 8-bit format..."); tmp = AFMT_U8; result = ioctl(sound_fd, SNDCTL_DSP_SETFMT, &tmp); @@@@ -132,7 +146,41 @@@@ } else { printf("done.\n"); } +#endif +#ifdef SOUND_NETBSD + AUDIO_INITINFO(&info); + printf("setting unsigned 8-bit format..."); + info.play.encoding = AUDIO_ENCODING_ULINEAR; + /* this doesn't work for me, so ignore results */ + result = ioctl(sound_fd, AUDIO_SETINFO, &info); + if (result < 0) + { + perror("warning: unsigned linear mode failed, using signed"); + info.play.encoding = AUDIO_ENCODING_SLINEAR; + } + printf("setting sound rate to %dHz...", sample_rate); + info.play.sample_rate = sample_rate; + /* 8 bits per sample */ + info.play.precision = 8; + printf("setting mono mode..."); + info.play.channels = 1; + info.mode = AUMODE_PLAY_ALL; + /* "frag size" */ + info.blocksize = 1 << 8; + /* "number of frags", hiwater mark */ + info.hiwat = 8; + result = ioctl(sound_fd, AUDIO_SETINFO, &info); + if (result < 0) { + perror("initializing sound failed"); + close(sound_fd); + sound_fd = 0; + return 0; + } else { + printf("done.\n"); + } +#endif + return 1; } @@@@ -141,6 +189,7 @@@@ if (sound_fd) { close(sound_fd); } + sound_fd = 0; } /* @ 1.1 log @Initial revision @ text @d4 1 a4 1 +++ ./snd_unix.c Sun Feb 13 22:27:06 2000 @ 1.1.1.1 log @Initial import of DarcNES, a multi-system emulator. Currently emulates NES, SMS, and GG with sound, PCE without, and has basic support for some other systems (SMD, Coleco, Atari ][). This will not work on MSB-machines, for lack of access. The code should support it, so if anyone's willing... @ text @@