Skip to content

Commit 52b9b6c

Browse files
committed
Update run script
1 parent 6cc02e4 commit 52b9b6c

File tree

1 file changed

+16
-14
lines changed

1 file changed

+16
-14
lines changed

scripts/run.sh

+16-14
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,11 @@
22

33
# ##############################################################################
44
# Set these paths to point to your PCSX2 1.7 executable and your copy of the game
5-
PCSX2_PATH="/opt/pcsx2-1.7.AppImage"
5+
PCSX2_PATH=""
66
ISO_PATH=""
77
# ##############################################################################
8+
ELF_PATH="out/SCUS_971.98"
9+
OPTONS="-fastboot -nogui"
810

911
# Expand aliases
1012
shopt -s expand_aliases
@@ -32,34 +34,34 @@ fi
3234
if [ -z "$ISO_PATH" ]; then
3335
echo "Warning: ISO path is empty, please edit the paths in 'scripts/run.sh'"
3436
# Error if ISO path is not valid
35-
elif [ ! -f "$ISO_PATH" ]; then
36-
die Game ISO not found at '$ISO_PATH'
37+
elif [ -f "$ISO_PATH" ]; then
38+
die Game ISO not found at $ISO_PATH
3739
exit 1
3840
fi
3941

4042
# Error if PCSX2 is not valid
41-
if [ ! -f "$PCSX2_PATH" ]; then
42-
die PCSX2 executable not found at '$PCSX2_PATH'
43-
exit 1
44-
fi
43+
#if [ -f "$PCSX2_PATH" ]; then
44+
# die PCSX2 executable not found at $PCSX2_PATH
45+
# exit 1
46+
#fi
4547

4648
# Show error message if PCSX2 is not executable
47-
if [ ! -x "$PCSX2_PATH" ]; then
48-
die PCSX2 executable is not executable
49-
exit 1
50-
fi
49+
#if [ -x "$PCSX2_PATH" ]; then
50+
# die PCSX2 executable is not executable
51+
# exit 1
52+
#fi
5153

5254
# Switch to the project root directory
5355
pushd "$(dirname "$0")/.." > /dev/null
5456

5557
# Build the game
5658
echo Compiling ELF...
57-
#make clean > /dev/null
58-
make > /dev/null
59+
#python3 configure.py --clean
60+
ninja
5961

6062
# Run the game
6163
echo Booting ELF in PCSX2...
62-
"$PCSX2_PATH" -elf bin/debug/SCUS_971.98 $ISO_PATH
64+
"$PCSX2_PATH" -elf $ELF_PATH $OPTIONS -- $ISO_PATH
6365

6466
# Switch back to the original directory
6567
popd > /dev/null

0 commit comments

Comments
 (0)