24 lines
609 B
Bash
24 lines
609 B
Bash
|
#!/bin/bash
|
||
|
|
||
|
# SPDX-License-Identifier: GPL-2.0-or-later
|
||
|
# Copyright (C) 2021-present Shanti Gilbert (https://github.com/shantigilbert)
|
||
|
|
||
|
# Source predefined functions and variables
|
||
|
. /etc/profile
|
||
|
|
||
|
mkdir -p "/storage/.local/share/"
|
||
|
|
||
|
if [ ! -L "/storage/.local/share/flycast" ]; then
|
||
|
mkdir -p "/storage/roms/bios/dc"
|
||
|
rm -rf "/storage/.local/share/flycast"
|
||
|
ln -sf "/storage/roms/bios/dc" "/storage/.local/share/flycast"
|
||
|
fi
|
||
|
|
||
|
AUTOGP=$(get_ee_setting flycast_auto_gamepad)
|
||
|
if [[ "${AUTOGP}" != "0" ]]; then
|
||
|
mkdir -p "/storage/.config/flycast/mappings"
|
||
|
/usr/bin/set_flycast_joy.sh
|
||
|
fi
|
||
|
|
||
|
flycast "${1}"
|