2023-09-22 02:18:41 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
# SPDX-License-Identifier: GPL-2.0-or-later
|
2023-10-24 16:00:57 +00:00
|
|
|
# Copyright (C) 2023 JELOS (https://github.com/JustEnoughLinuxOS)
|
2023-09-22 02:18:41 +00:00
|
|
|
|
|
|
|
source /etc/profile
|
|
|
|
|
2023-10-12 21:42:03 +00:00
|
|
|
# Link certain RPCS3 folders to a location in /storage/roms/bios
|
|
|
|
FOLDER_LINKS=("dev_flash" "dev_hdd0" "dev_hdd1" "custom_configs")
|
|
|
|
for FOLDER_LINK in "${FOLDER_LINKS[@]}"; do
|
|
|
|
TARGET_FOLDER="/storage/roms/bios/rpcs3/$FOLDER_LINK"
|
|
|
|
SOURCE_FOLDER="/storage/.config/rpcs3/$FOLDER_LINK"
|
|
|
|
|
|
|
|
# Create the target folder if it doesn't exist
|
|
|
|
if [ ! -d "$TARGET_FOLDER" ]; then
|
|
|
|
mkdir -p "$TARGET_FOLDER"
|
|
|
|
fi
|
|
|
|
|
|
|
|
# Remove existing source folder
|
|
|
|
rm -rf "$SOURCE_FOLDER"
|
|
|
|
|
|
|
|
# Create symbolic link
|
|
|
|
ln -sf "$TARGET_FOLDER" "$SOURCE_FOLDER"
|
|
|
|
done
|
|
|
|
|
2023-09-22 02:18:41 +00:00
|
|
|
jslisten set "rpcs3"
|
|
|
|
|
|
|
|
/usr/bin/rpcs3 >/dev/null 2>&1
|