Date: Fri, 7 Apr 2017 17:39:58 +0000 (UTC) From: Alexey Dokuchaev <danfe@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r437948 - head/games/doomlegacy/files Message-ID: <201704071739.v37HdwB6069992@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: danfe Date: Fri Apr 7 17:39:58 2017 New Revision: 437948 URL: https://svnweb.freebsd.org/changeset/ports/437948 Log: Disable searching for WADs in the current directory as it can easily take up a lot of time (e.g., when launched from $HOME) and thus delay the game startup in a very annoying way (also stresses the disks a lot). Added: head/games/doomlegacy/files/patch-src_d__main.c (contents, props changed) Added: head/games/doomlegacy/files/patch-src_d__main.c ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/games/doomlegacy/files/patch-src_d__main.c Fri Apr 7 17:39:58 2017 (r437948) @@ -0,0 +1,27 @@ +--- src/d_main.c.orig 2017-03-03 19:49:10 UTC ++++ src/d_main.c +@@ -439,11 +439,13 @@ extern char mac_user_home[FILENAME_SIZE] + void owner_wad_search_order( void ) + { + // Wad search order. ++#if 0 + if( defdir_stat ) + { + // Search current dir near first, for other wad searches. + doomwaddir[1] = defdir; + } ++#endif + // Search progdir/wads early, for other wad searches. + doomwaddir[2] = progdir_wads; + // Search last, for other wad searches. +@@ -1160,8 +1162,10 @@ void Print_search_directories( byte emf + // Verbose only. For IWAD or legacy.wad they are in doomwaddir entries. + if( (enables==0x0F) && progdir_wads ) + GenPrintf(emf, " : %s\n", progdir_wads ); ++#if 0 + if( (enables==0x0F) && defdir ) + GenPrintf(emf, " defdir: %s\n", defdir ); ++#endif + #ifdef LEGACYWADDIR + GenPrintf(emf, " LEGACYWADDIR: %s\n", LEGACYWADDIR ); + #endif
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201704071739.v37HdwB6069992>