diff options
author | B. Watson <yalhcru@gmail.com> | 2014-09-06 00:41:31 +0700 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2014-09-06 00:41:31 +0700 |
commit | eee86e8329d10433ccacf7c939bff2cc28f1d3b6 (patch) | |
tree | c24f729f22aa1db7404182aec16d8a4d48e9da14 /games/wolf4sdl/exename.diff | |
parent | 3de7a6405c23eea27594f3255572fa60efd1234f (diff) | |
download | slackbuilds-eee86e8329d10433ccacf7c939bff2cc28f1d3b6.tar.gz |
games/wolf4sdl: Added (Wolfenstein 3D engine).
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'games/wolf4sdl/exename.diff')
-rw-r--r-- | games/wolf4sdl/exename.diff | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/games/wolf4sdl/exename.diff b/games/wolf4sdl/exename.diff new file mode 100644 index 0000000000..2c1f249aa4 --- /dev/null +++ b/games/wolf4sdl/exename.diff @@ -0,0 +1,32 @@ +diff -Naur Wolf4SDL-1.7-src/wl_main.cpp Wolf4SDL-1.7-src.patched/wl_main.cpp +--- Wolf4SDL-1.7-src/wl_main.cpp 2011-05-15 23:11:34.000000000 -0400 ++++ Wolf4SDL-1.7-src.patched/wl_main.cpp 2014-09-05 12:06:24.000000000 -0400 +@@ -1678,6 +1678,10 @@ + bool hasError = false, showHelp = false; + bool sampleRateGiven = false, audioBufferGiven = false; + int defaultSampleRate = param_samplerate; ++ char *exename = argv[0], *p; ++ ++ for (p = argv[0]; *p; p++) ++ if (*p == '/') exename = p + 1; + + for(int i = 1; i < argc; i++) + { +@@ -1884,7 +1888,7 @@ + "Wolf4SDL v1.7 ($Revision: 256 $)\n" + "Ported by Chaos-Software (http://www.chaos-software.de.vu)\n" + "Original Wolfenstein 3D by id Software\n\n" +- "Usage: Wolf4SDL [options]\n" ++ "Usage: %s [options]\n" + "Options:\n" + " --help This help page\n" + " --tedlevel <level> Starts the game in the given level\n" +@@ -1923,7 +1927,7 @@ + " (default: 0 -> .sod, 1-3 -> .sd*)\n" + " --goodtimes Disable copy protection quiz\n" + #endif +- , defaultSampleRate ++ , exename, defaultSampleRate + ); + exit(1); + } |