[BACK]Return to patch-src_d__main.c CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / pkgsrc / games / doomlegacy / patches

File: [cvs.NetBSD.org] / pkgsrc / games / doomlegacy / patches / patch-src_d__main.c (download)

Revision 1.1, Mon Jun 17 13:53:22 2019 UTC (5 months ago) by micha
Branch: MAIN
CVS Tags: pkgsrc-2019Q3-base, pkgsrc-2019Q3, pkgsrc-2019Q2-base, pkgsrc-2019Q2, HEAD

games/doomlegacy: import doomlegacy-1.47.2

This is one of the most popular Doom source ports.
It enhances Doom with things like:
- Free Look
- OpenGL renderer
- Heretic support,
- TCP/IP networking
and much more.

Doom Legacy can play Doom, Boom, Marine's Best Friend (MBF), and Heretic maps.
In addition to the original games by id Software and Raven Software, there are
hundreds of free, fan-made maps available on the Internet. These maps are
typically distributed as PWAD files, which are not fully self-contained.
For each game you will also need the corresponding IWAD data file, which
contains all the graphics, wall and floor textures, sounds, and music for that
game. For example, if you want to play Doom II maps, you'll need the IWAD file
doom2.wad, or one of the free replacements.

Legacy has implemented the fundamental and de-facto-standard Boom extensions,
and the Marine's Best Friend (MBF) extensions. Legacy also has implemented
among other things 3D floors, swimmable water and other special effects using
extended linedef codes, and supports the FraggleScript scripting language.

This package contains the SDL build of Doom Legacy.

$NetBSD: patch-src_d__main.c,v 1.1 2019/06/17 13:53:22 micha Exp $

Without command line arguments the launcher menu is displayed by default.
This is not desired because we have already prepared the shareware Episode 1
for pkgsrc.

--- src/d_main.c.orig	2018-07-25 10:14:34.000000000 +0000
+++ src/d_main.c
@@ -2507,9 +2507,10 @@ restart_command:
    
     EOUT_flags = EOUT_text | EOUT_log | EOUT_con;
 
-
-#ifdef LAUNCHER   
-    if ( fatal_error || init_sequence == 1 || (init_sequence == 0 && myargc < 2 ))
+#ifdef LAUNCHER
+    // Disable argc check for pkgsrc (shareware episode already prepared)
+    // if ( fatal_error || init_sequence == 1 || (init_sequence == 0 && myargc < 2 ))
+    if ( fatal_error || init_sequence == 1 )
     {
         // [WDJ] Invoke built-in launcher command line
 #if 0