From 1ea1b9cae5f6747dbae559b19414e29ee156fe69 Mon Sep 17 00:00:00 2001 From: Peter Veenstra Date: Sun, 1 Feb 2009 15:52:53 +0000 Subject: [PATCH] no dir no glory. Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3291 --- src/hardware/hardware.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/hardware/hardware.cpp b/src/hardware/hardware.cpp index d2d74566..135e6e5e 100644 --- a/src/hardware/hardware.cpp +++ b/src/hardware/hardware.cpp @@ -16,7 +16,7 @@ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ -/* $Id: hardware.cpp,v 1.20 2009-02-01 14:21:19 qbix79 Exp $ */ +/* $Id: hardware.cpp,v 1.21 2009-02-01 15:52:53 qbix79 Exp $ */ #include #include @@ -83,6 +83,11 @@ static struct { } capture; FILE * OpenCaptureFile(const char * type,const char * ext) { + if(capturedir.empty()) { + LOG_MSG("Please specify a capture directory"); + return 0; + } + Bitu last=0; char file_name[CROSS_LEN]; char file_start[16];