mirror of
https://github.com/DrBeef/ioq3quest.git
synced 2024-11-29 15:21:54 +00:00
67dace6c20
q3ded +set sv_dlURL "http://example.org" The shell removes the quotes but makes the content be a single argument for progam args. Quake 3 concatenates all the program args and splits lines at + or newlines. Then Quake 3 parses them using a tokenizer that skips unquoted C comments beginning with //. This results in the cvar being set to "http:". Escape the quotes so they are passed to the program and the tokenizer knows not to skip C comments. q3ded +set sv_dlURL \"http://example.org\"
7 lines
489 B
Bash
7 lines
489 B
Bash
#!/bin/sh
|
|
echo "Edit this script to change the path to ioquake3's dedicated server executable."
|
|
echo "Set the sv_dlURL setting to a url like http://yoursite.com/ioquake3_path for ioquake3 clients to download extra data."
|
|
|
|
# sv_dlURL needs to have quotes escaped like \"http://yoursite.com/ioquake3_path\" or it will be set to "http:" in-game.
|
|
|
|
/Applications/ioquake3/ioquake3.app/Contents/MacOS/ioq3ded +set dedicated 2 +set sv_allowDownload 1 +set sv_dlURL \"\" +set com_hunkmegs 64 "$@"
|