head 1.7; access; symbols pkgsrc-2019Q1:1.6.0.130 pkgsrc-2019Q1-base:1.6 pkgsrc-2018Q4:1.6.0.128 pkgsrc-2018Q4-base:1.6 pkgsrc-2018Q3:1.6.0.126 pkgsrc-2018Q3-base:1.6 pkgsrc-2018Q2:1.6.0.124 pkgsrc-2018Q2-base:1.6 pkgsrc-2018Q1:1.6.0.122 pkgsrc-2018Q1-base:1.6 pkgsrc-2017Q4:1.6.0.120 pkgsrc-2017Q4-base:1.6 pkgsrc-2017Q3:1.6.0.118 pkgsrc-2017Q3-base:1.6 pkgsrc-2017Q2:1.6.0.114 pkgsrc-2017Q2-base:1.6 pkgsrc-2017Q1:1.6.0.112 pkgsrc-2017Q1-base:1.6 pkgsrc-2016Q4:1.6.0.110 pkgsrc-2016Q4-base:1.6 pkgsrc-2016Q3:1.6.0.108 pkgsrc-2016Q3-base:1.6 pkgsrc-2016Q2:1.6.0.106 pkgsrc-2016Q2-base:1.6 pkgsrc-2016Q1:1.6.0.104 pkgsrc-2016Q1-base:1.6 pkgsrc-2015Q4:1.6.0.102 pkgsrc-2015Q4-base:1.6 pkgsrc-2015Q3:1.6.0.100 pkgsrc-2015Q3-base:1.6 pkgsrc-2015Q2:1.6.0.98 pkgsrc-2015Q2-base:1.6 pkgsrc-2015Q1:1.6.0.96 pkgsrc-2015Q1-base:1.6 pkgsrc-2014Q4:1.6.0.94 pkgsrc-2014Q4-base:1.6 pkgsrc-2014Q3:1.6.0.92 pkgsrc-2014Q3-base:1.6 pkgsrc-2014Q2:1.6.0.90 pkgsrc-2014Q2-base:1.6 pkgsrc-2014Q1:1.6.0.88 pkgsrc-2014Q1-base:1.6 pkgsrc-2013Q4:1.6.0.86 pkgsrc-2013Q4-base:1.6 pkgsrc-2013Q3:1.6.0.84 pkgsrc-2013Q3-base:1.6 pkgsrc-2013Q2:1.6.0.82 pkgsrc-2013Q2-base:1.6 pkgsrc-2013Q1:1.6.0.80 pkgsrc-2013Q1-base:1.6 pkgsrc-2012Q4:1.6.0.78 pkgsrc-2012Q4-base:1.6 pkgsrc-2012Q3:1.6.0.76 pkgsrc-2012Q3-base:1.6 pkgsrc-2012Q2:1.6.0.74 pkgsrc-2012Q2-base:1.6 pkgsrc-2012Q1:1.6.0.72 pkgsrc-2012Q1-base:1.6 pkgsrc-2011Q4:1.6.0.70 pkgsrc-2011Q4-base:1.6 pkgsrc-2011Q3:1.6.0.68 pkgsrc-2011Q3-base:1.6 pkgsrc-2011Q2:1.6.0.66 pkgsrc-2011Q2-base:1.6 pkgsrc-2011Q1:1.6.0.64 pkgsrc-2011Q1-base:1.6 pkgsrc-2010Q4:1.6.0.62 pkgsrc-2010Q4-base:1.6 pkgsrc-2010Q3:1.6.0.60 pkgsrc-2010Q3-base:1.6 pkgsrc-2010Q2:1.6.0.58 pkgsrc-2010Q2-base:1.6 pkgsrc-2010Q1:1.6.0.56 pkgsrc-2010Q1-base:1.6 pkgsrc-2009Q4:1.6.0.54 pkgsrc-2009Q4-base:1.6 pkgsrc-2009Q3:1.6.0.52 pkgsrc-2009Q3-base:1.6 pkgsrc-2009Q2:1.6.0.50 pkgsrc-2009Q2-base:1.6 pkgsrc-2009Q1:1.6.0.48 pkgsrc-2009Q1-base:1.6 pkgsrc-2008Q4:1.6.0.46 pkgsrc-2008Q4-base:1.6 pkgsrc-2008Q3:1.6.0.44 pkgsrc-2008Q3-base:1.6 cube-native-xorg:1.6.0.42 cube-native-xorg-base:1.6 pkgsrc-2008Q2:1.6.0.40 pkgsrc-2008Q2-base:1.6 cwrapper:1.6.0.38 pkgsrc-2008Q1:1.6.0.36 pkgsrc-2008Q1-base:1.6 pkgsrc-2007Q4:1.6.0.34 pkgsrc-2007Q4-base:1.6 pkgsrc-2007Q3:1.6.0.32 pkgsrc-2007Q3-base:1.6 pkgsrc-2007Q2:1.6.0.30 pkgsrc-2007Q2-base:1.6 pkgsrc-2007Q1:1.6.0.28 pkgsrc-2007Q1-base:1.6 pkgsrc-2006Q4:1.6.0.26 pkgsrc-2006Q4-base:1.6 pkgsrc-2006Q3:1.6.0.24 pkgsrc-2006Q3-base:1.6 pkgsrc-2006Q2:1.6.0.22 pkgsrc-2006Q2-base:1.6 pkgsrc-2006Q1:1.6.0.20 pkgsrc-2006Q1-base:1.6 pkgsrc-2005Q4:1.6.0.18 pkgsrc-2005Q4-base:1.6 pkgsrc-2005Q3:1.6.0.16 pkgsrc-2005Q3-base:1.6 pkgsrc-2005Q2:1.6.0.14 pkgsrc-2005Q2-base:1.6 pkgsrc-2005Q1:1.6.0.12 pkgsrc-2005Q1-base:1.6 pkgsrc-2004Q4:1.6.0.10 pkgsrc-2004Q4-base:1.6 pkgsrc-2004Q3:1.6.0.8 pkgsrc-2004Q3-base:1.6 pkgsrc-2004Q2:1.6.0.6 pkgsrc-2004Q2-base:1.6 pkgsrc-2004Q1:1.6.0.4 pkgsrc-2004Q1-base:1.6 pkgsrc-2003Q4:1.6.0.2 pkgsrc-2003Q4-base:1.6 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 2003.09.17.07.15.34; author wiz; state Exp; branches; next 1.5; 1.5 date 2000.07.02.01.05.13; 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.34; 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-ab,v 1.6 2003/09/17 07:15:34 wiz Exp $ --- ui_x.c.orig Mon Oct 30 23:15:31 2000 +++ ui_x.c @@@@ -177,6 +177,12 @@@@ int main(int argc, char *argv[]) return 1; } + if (romfile == NULL) { + printf("rom not specified.\n"); + usage(argv[0]); + return 1; + } + initialize_window(display); activate_system(system_type, romfile); @ 1.6 log @Don't dump core if no ROM specified. From Soren Jacobsen in PR 22326. @ 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-ab,v 1.4 2000/06/03 10:57:12 wiz Exp $ d3 5 a7 3 --- cd_unix.c.orig Wed Mar 15 04:48:04 2000 +++ cd_unix.c Thu Jun 1 02:43:02 2000 @@@@ -8,6 +8,6 @@@@ d9 7 a15 5 /* #define CD_LINUX */ /* use linux-specific code */ -#define CD_FREEBSD /* use freebsd-specific code */ -/* #define CD_NETBSD */ /* use netbsd-specific code */ +/* #define CD_FREEBSD */ /* use freebsd-specific code */ +#define CD_NETBSD /* use netbsd-specific code */ d17 1 a17 1 #ifdef CD_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 --- ./cd_unix.c.orig Mon Feb 14 03:09:03 2000 +++ ./cd_unix.c Sun Feb 20 15:41:46 2000 @@@@ -8,7 +8,7 @@@@ a13 1 #define CDROM_DEVICE "/dev/cdrom" @ 1.2 log @First try at making darcnes work on non-i386-platforms @ text @d3 12 a14 96 --- ./cd_netbsd.c.orig Mon Feb 14 00:38:08 2000 +++ ./cd_netbsd.c Mon Feb 14 00:38:08 2000 @@@@ -0,0 +1,93 @@@@ +/* + * cd_netbsd.c + * + * NetBSD CDROM interface + */ + +#include +#include +#include +#include +#include +#include + +#include + +#include "types.h" +#include "cd.h" + +#define CDROM_DEVICE "/dev/rcd0d" + +int pce_cd_drive; + +struct ioc_read_toc_entry pce_cd_tocentry; + +void cd_set_sector_address(u32 sector) +{ + int result; + + result = lseek(pce_cd_drive, (sector) * 2048, SEEK_SET); + if (result < 0) { + perror("pce_cd: seeking to CD sector"); + } +} + +void cd_read_next_sector(u8 *buf) +{ + int result; + + result = read(pce_cd_drive, buf, 2048); + if (result < 0) { + perror("pce_cd: reading CD data"); + } +} + +void cd_get_tocheader(u8 *start_track, u8 *stop_track) +{ + struct ioc_toc_header toc_header; + int result; + + result = ioctl(pce_cd_drive, CDIOREADTOCHEADER, &toc_header); + if (result < 0) { + perror("pce_cd: reading tocheader"); + /* XXX: use dummy values? */ + *start_track = 1; + *stop_track = 4; + } else { + *start_track = toc_header.starting_track; + *stop_track = toc_header.ending_track; + } +} + +void cd_get_tocentry(u8 track, u32 *lba, u8 *flags) +{ + int result; + struct cd_toc_entry toc_entry; + + pce_cd_tocentry.starting_track = track; + pce_cd_tocentry.address_format = CD_LBA_FORMAT; + pce_cd_tocentry.data_len = sizeof(toc_entry); + pce_cd_tocentry.data = &toc_entry; + + result = ioctl(pce_cd_drive, CDIOREADTOCENTRYS, &pce_cd_tocentry); + if (result < 0) { + perror("pce_cd: reading tocentry"); +/* deb_printf("pce_cd: tocread failure.\n"); */ + } else { + /* is this what you want? */ + *lba = toc_entry.addr.lba; + *flags = toc_entry.control; + /* ???: FIXME: may want cdte.adr << 4 in here as well */ + } +} + +void cd_init(void) +{ + pce_cd_drive = open(CDROM_DEVICE, O_RDONLY); + if (pce_cd_drive < 0) { + perror("pce_cd: opening CD drive"); + pce_cd_drive = 0; + } else { + /* Do something? */ + } +} @ 1.1 log @Initial revision @ text @d3 2 a4 2 --- ./cd_netbsd.c.orig Sun Feb 13 22:28:03 2000 +++ ./cd_netbsd.c Sun Feb 13 22:28:32 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 @@