From 1294271a5ca6a42123c6de5503e093d82df982c6 Mon Sep 17 00:00:00 2001 From: wiz Date: Wed, 17 Sep 2003 07:15:32 +0000 Subject: Don't dump core if no ROM specified. From Soren Jacobsen in PR 22326. --- emulators/darcnes/Makefile | 3 ++- emulators/darcnes/distinfo | 3 ++- emulators/darcnes/patches/patch-ab | 17 +++++++++++++++++ 3 files changed, 21 insertions(+), 2 deletions(-) create mode 100644 emulators/darcnes/patches/patch-ab (limited to 'emulators') diff --git a/emulators/darcnes/Makefile b/emulators/darcnes/Makefile index c83b5b6efa5..e3760548c0c 100644 --- a/emulators/darcnes/Makefile +++ b/emulators/darcnes/Makefile @@ -1,6 +1,7 @@ -# $NetBSD: Makefile,v 1.19 2003/08/02 19:52:12 wiz Exp $ +# $NetBSD: Makefile,v 1.20 2003/09/17 07:15:32 wiz Exp $ PKGNAME= darcnes-20010401 +PKGREVISION= 1 MAINTAINER= wiz@NetBSD.org COMMENT= Multi-system emulator (NES, SMS, GG, PCE, and others) diff --git a/emulators/darcnes/distinfo b/emulators/darcnes/distinfo index b02b2f1ea9f..949857bba8a 100644 --- a/emulators/darcnes/distinfo +++ b/emulators/darcnes/distinfo @@ -1,8 +1,9 @@ -$NetBSD: distinfo,v 1.3 2001/07/08 18:12:00 wiz Exp $ +$NetBSD: distinfo,v 1.4 2003/09/17 07:15:33 wiz Exp $ SHA1 (dn9b0401.tgz) = 3158ae8bd53891c2d17989cbb9d03493f1511132 Size (dn9b0401.tgz) = 199963 bytes SHA1 (patch-aa) = e7d2631d41d7914ed650a450a75f47ef711a3ca0 +SHA1 (patch-ab) = 896a42a538f8a54da70fc3e8d0d01ac13eeb151d SHA1 (patch-ad) = 1b3b493b41402edab814b6addaf19cc44dc2e8eb SHA1 (patch-ae) = b4a1029aebc356f10a90df35dcf3c392232a8c05 SHA1 (patch-af) = 470abb49e62e0b508893c0a32e3248635395896a diff --git a/emulators/darcnes/patches/patch-ab b/emulators/darcnes/patches/patch-ab new file mode 100644 index 00000000000..f21a578121c --- /dev/null +++ b/emulators/darcnes/patches/patch-ab @@ -0,0 +1,17 @@ +$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); -- cgit v1.2.3