diff options
author | danfe <danfe@FreeBSD.org> | 2017-04-08 01:39:58 +0800 |
---|---|---|
committer | Koop Mast <kwm@rainbow-runner.nl> | 2017-04-09 21:34:11 +0800 |
commit | 427edbf5ce9eeb4ff7101938f26cc3d92f60cce3 (patch) | |
tree | 807f774e896c212c21399657d62d76bd35728e2a | |
parent | 9f7fc44db169442d34f5e578aefe4c79201c1f55 (diff) | |
download | freebsd-ports-gnome-427edbf5ce9eeb4ff7101938f26cc3d92f60cce3.tar.gz freebsd-ports-gnome-427edbf5ce9eeb4ff7101938f26cc3d92f60cce3.tar.zst freebsd-ports-gnome-427edbf5ce9eeb4ff7101938f26cc3d92f60cce3.zip |
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).
-rw-r--r-- | games/doomlegacy/files/patch-src_d__main.c | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/games/doomlegacy/files/patch-src_d__main.c b/games/doomlegacy/files/patch-src_d__main.c new file mode 100644 index 000000000000..f7184d3238a3 --- /dev/null +++ b/games/doomlegacy/files/patch-src_d__main.c @@ -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 |