2020-10-18 23:33:03 +00:00
|
|
|
#!/bin/bash
|
2022-03-02 04:32:33 +00:00
|
|
|
|
2020-08-02 03:22:24 +00:00
|
|
|
set -e
|
2020-09-04 18:43:12 +00:00
|
|
|
if [ $# -eq 0 ]; then
|
2022-03-02 04:32:33 +00:00
|
|
|
make DEBUG=1 DEVELOPMENT=1 STRICT=1 -j
|
2020-09-11 04:26:17 +00:00
|
|
|
else
|
2022-03-02 04:32:33 +00:00
|
|
|
make DEBUG=1 DEVELOPMENT=1 -j
|
2020-09-04 18:43:12 +00:00
|
|
|
fi
|
2020-08-09 20:23:27 +00:00
|
|
|
|
|
|
|
# find file
|
|
|
|
FILE=./build/us_pc/sm64.us.f3dex2e.exe
|
2022-03-02 04:32:33 +00:00
|
|
|
WINPTY=winpty
|
2020-08-09 20:23:27 +00:00
|
|
|
if [ ! -f "$FILE" ]; then
|
|
|
|
FILE=./build/us_pc/sm64.us.f3dex2e
|
2022-03-02 04:32:33 +00:00
|
|
|
WINPTY=
|
2020-08-09 20:23:27 +00:00
|
|
|
fi
|
|
|
|
|
2020-10-01 01:20:13 +00:00
|
|
|
# no debug, direct
|
2022-01-16 05:50:35 +00:00
|
|
|
$FILE --server 27015 --configfile sm64config_server.txt &
|
2022-02-16 06:29:22 +00:00
|
|
|
sleep 2
|
|
|
|
$FILE --client 127.0.0.1 27015 --configfile sm64config_client.txt &
|
2022-01-16 05:50:35 +00:00
|
|
|
exit
|
2020-08-09 20:23:27 +00:00
|
|
|
|
2022-03-02 04:32:33 +00:00
|
|
|
# no debug, discord
|
|
|
|
#$FILE --discord 2 --configfile sm64config_server.txt &
|
|
|
|
#$FILE --discord 1 --configfile sm64config_client.txt &
|
|
|
|
#exit
|
|
|
|
|
2020-10-01 01:20:13 +00:00
|
|
|
# debug on server
|
2022-02-03 03:33:36 +00:00
|
|
|
#$FILE --client 127.0.0.1 27015 --configfile sm64config_client.txt & > /dev/null
|
2022-03-02 04:32:33 +00:00
|
|
|
#$WINPTY cgdb $FILE -ex 'break debug_breakpoint_here' -ex 'run --server 27015 --configfile sm64config_server.txt' -ex 'quit'
|
2022-02-03 03:33:36 +00:00
|
|
|
#exit
|
2020-10-01 01:20:13 +00:00
|
|
|
|
2022-03-02 04:32:33 +00:00
|
|
|
# debug on client
|
|
|
|
$FILE --server 27015 --configfile sm64config_server.txt & > /dev/null
|
|
|
|
$WINPTY cgdb $FILE -ex 'break debug_breakpoint_here' -ex 'run --client 127.0.0.1 27015 --configfile sm64config_client.txt' -ex 'quit'
|
|
|
|
exit
|