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
|
2023-05-17 05:14:25 +00:00
|
|
|
make DEBUG=1 DEVELOPMENT=1 STRICT=1 -j
|
2020-09-11 04:26:17 +00:00
|
|
|
else
|
2023-05-17 05:14:25 +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-04-13 02:25:06 +00:00
|
|
|
$FILE --server 7777 --configfile sm64config_server.txt &
|
2022-04-11 04:53:58 +00:00
|
|
|
sleep 2
|
2022-04-13 02:25:06 +00:00
|
|
|
$FILE --client 127.0.0.1 7777 --configfile sm64config_client.txt &
|
2022-04-11 04:53:58 +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-04-13 02:25:06 +00:00
|
|
|
#$FILE --client 127.0.0.1 7777 --configfile sm64config_client.txt & > /dev/null
|
|
|
|
#$WINPTY cgdb $FILE -ex 'break debug_breakpoint_here' -ex 'run --server 7777 --configfile sm64config_server.txt' -ex 'quit'
|
2022-04-11 04:53:58 +00:00
|
|
|
#exit
|
2020-10-01 01:20:13 +00:00
|
|
|
|
2022-03-02 04:32:33 +00:00
|
|
|
# debug on client
|
2022-04-13 02:25:06 +00:00
|
|
|
$FILE --server 7777 --configfile sm64config_server.txt & > /dev/null
|
|
|
|
$WINPTY cgdb $FILE -ex 'network_receive_download' -ex 'break debug_breakpoint_here' -ex 'run --client 127.0.0.1 7777 --configfile sm64config_client.txt' -ex 'quit'
|
2022-03-02 04:32:33 +00:00
|
|
|
exit
|