2020-10-19 01:33:03 +02:00
|
|
|
#!/bin/bash
|
2022-03-02 05:32:33 +01:00
|
|
|
|
2020-08-02 05:22:24 +02:00
|
|
|
set -e
|
2020-09-04 20:43:12 +02:00
|
|
|
if [ $# -eq 0 ]; then
|
2022-03-02 05:32:33 +01:00
|
|
|
make DEBUG=1 DEVELOPMENT=1 STRICT=1 -j
|
2020-09-11 06:26:17 +02:00
|
|
|
else
|
2022-03-02 05:32:33 +01:00
|
|
|
make DEBUG=1 DEVELOPMENT=1 -j
|
2020-09-04 20:43:12 +02:00
|
|
|
fi
|
2020-08-09 22:23:27 +02:00
|
|
|
|
|
|
|
# find file
|
|
|
|
FILE=./build/us_pc/sm64.us.f3dex2e.exe
|
2022-03-02 05:32:33 +01:00
|
|
|
WINPTY=winpty
|
2020-08-09 22:23:27 +02:00
|
|
|
if [ ! -f "$FILE" ]; then
|
|
|
|
FILE=./build/us_pc/sm64.us.f3dex2e
|
2022-03-02 05:32:33 +01:00
|
|
|
WINPTY=
|
2020-08-09 22:23:27 +02:00
|
|
|
fi
|
|
|
|
|
2020-10-01 03:20:13 +02:00
|
|
|
# no debug, direct
|
2022-04-13 04:25:06 +02:00
|
|
|
$FILE --server 7777 --configfile sm64config_server.txt &
|
2022-04-11 06:53:58 +02:00
|
|
|
sleep 2
|
2022-04-13 04:25:06 +02:00
|
|
|
$FILE --client 127.0.0.1 7777 --configfile sm64config_client.txt &
|
2022-04-11 06:53:58 +02:00
|
|
|
exit
|
2020-08-09 22:23:27 +02:00
|
|
|
|
2022-03-02 05:32:33 +01:00
|
|
|
# no debug, discord
|
|
|
|
#$FILE --discord 2 --configfile sm64config_server.txt &
|
|
|
|
#$FILE --discord 1 --configfile sm64config_client.txt &
|
|
|
|
#exit
|
|
|
|
|
2020-10-01 03:20:13 +02:00
|
|
|
# debug on server
|
2022-04-13 04:25:06 +02: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 06:53:58 +02:00
|
|
|
#exit
|
2020-10-01 03:20:13 +02:00
|
|
|
|
2022-03-02 05:32:33 +01:00
|
|
|
# debug on client
|
2022-04-13 04:25:06 +02: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 05:32:33 +01:00
|
|
|
exit
|