|
2 | 2 |
|
3 | 3 | # ##############################################################################
|
4 | 4 | # 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="" |
6 | 6 | ISO_PATH=""
|
7 | 7 | # ##############################################################################
|
| 8 | +ELF_PATH="out/SCUS_971.98" |
| 9 | +OPTONS="-fastboot -nogui" |
8 | 10 |
|
9 | 11 | # Expand aliases
|
10 | 12 | shopt -s expand_aliases
|
|
32 | 34 | if [ -z "$ISO_PATH" ]; then
|
33 | 35 | echo "Warning: ISO path is empty, please edit the paths in 'scripts/run.sh'"
|
34 | 36 | # 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 |
37 | 39 | exit 1
|
38 | 40 | fi
|
39 | 41 |
|
40 | 42 | # 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 |
45 | 47 |
|
46 | 48 | # 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 |
51 | 53 |
|
52 | 54 | # Switch to the project root directory
|
53 | 55 | pushd "$(dirname "$0")/.." > /dev/null
|
54 | 56 |
|
55 | 57 | # Build the game
|
56 | 58 | echo Compiling ELF...
|
57 |
| -#make clean > /dev/null |
58 |
| -make > /dev/null |
| 59 | +#python3 configure.py --clean |
| 60 | +ninja |
59 | 61 |
|
60 | 62 | # Run the game
|
61 | 63 | 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 |
63 | 65 |
|
64 | 66 | # Switch back to the original directory
|
65 | 67 | popd > /dev/null
|
|
0 commit comments