Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Mac: Client/server debugging scripts
Mac OS X scripts for starting a dedicated server or client that automatically connects to localhost.
- Loading branch information
Showing
3 changed files
with
59 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
#!/bin/sh | ||
RUNDIR=`pwd`/client-runtime | ||
mkdir -p $RUNDIR | ||
|
||
if [ "$1" == "doom" ] | ||
then | ||
commonstart.sh jDoom Doom -userdir $RUNDIR -connect localhost | ||
fi | ||
|
||
if [ "$1" == "doom2" ] | ||
then | ||
commonstart.sh jDoom Doom2 -userdir $RUNDIR -connect localhost | ||
fi | ||
|
||
if [ "$1" == "heretic" ] | ||
then | ||
commonstart.sh jHeretic Heretic -userdir $RUNDIR -connect localhost | ||
fi | ||
|
||
if [ "$1" == "hexen" ] | ||
then | ||
commonstart.sh jHexen Hexen -userdir $RUNDIR -connect localhost | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
#!/bin/sh | ||
IWADDIR="/Users/jaakko/Dropbox/IWADs" | ||
CFGDIR="/Users/jaakko" | ||
|
||
# Use Guard Malloc for debugging. | ||
export DYLD_INSERT_LIBRARIES="/usr/lib/libgmalloc.dylib" | ||
DEBUGGER="gdb --args" | ||
|
||
GAME=$1 | ||
IWAD=$2 | ||
ROPTS="-file ../../doomsday.pk3 ../../${GAME}.pk3" | ||
|
||
$DEBUGGER Doomsday.app/Contents/MacOS/Doomsday -appdir . -game ${GAME}.bundle -iwad $IWADDIR/${IWAD}.wad -basedir Doomsday.app/Contents/Resources -wh 800 600 -wnd -nomouse -nomusic $ROPTS -cparse $CFGDIR/util.cfg $3 $4 $5 $6 $7 $8 $9 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
#!/bin/sh | ||
RUNDIR=`pwd`/server-runtime | ||
mkdir -p $RUNDIR | ||
|
||
if [ "$1" == "doom" ] | ||
then | ||
commonstart.sh jDoom Doom -server -dedicated -userdir $RUNDIR | ||
fi | ||
|
||
if [ "$1" == "doom2" ] | ||
then | ||
commonstart.sh jDoom Doom2 -server -dedicated -userdir $RUNDIR | ||
fi | ||
|
||
if [ "$1" == "heretic" ] | ||
then | ||
commonstart.sh jHeretic Heretic -server -dedicated -userdir $RUNDIR | ||
fi | ||
|
||
if [ "$1" == "hexen" ] | ||
then | ||
commonstart.sh jHexen Hexen -server -dedicated -userdir $RUNDIR | ||
fi |