From 35b8249ab16bcc6a45f99deacf78441bdbc6d44a Mon Sep 17 00:00:00 2001 From: Peter Veenstra Date: Fri, 7 Apr 2006 15:15:45 +0000 Subject: [PATCH] Only run demo if called from the first shell. (Xcom TFTD) Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@2581 --- src/dos/dos_programs.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/dos/dos_programs.cpp b/src/dos/dos_programs.cpp index c2f4f238..c3b21ee6 100644 --- a/src/dos/dos_programs.cpp +++ b/src/dos/dos_programs.cpp @@ -16,7 +16,7 @@ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ -/* $Id: dos_programs.cpp,v 1.56 2006-03-12 21:12:20 qbix79 Exp $ */ +/* $Id: dos_programs.cpp,v 1.57 2006-04-07 15:15:45 qbix79 Exp $ */ #include #include @@ -619,6 +619,8 @@ public: } void Run(void) { + /* Only run if called from the first shell (Xcom TFTD runs any intro file in the path) */ + if(DOS_PSP(dos.psp()).GetParent() != DOS_PSP(DOS_PSP(dos.psp()).GetParent()).GetParent()) return; if(cmd->FindExist("cdrom",false)) { WriteOut(MSG_Get("PROGRAM_INTRO_CDROM")); return;