Fix bug where Dolphin-sa controls dont work if no profile is selected.

This commit is contained in:
mason 2023-06-11 13:57:30 +00:00
parent 722e0b79ed
commit 4e38724ad6
No known key found for this signature in database
GPG key ID: 84D9278A11FA112B
2 changed files with 11 additions and 1 deletions

View file

@ -11,6 +11,11 @@ if [ ! -d "/storage/.config/dolphin-emu" ]; then
cp -r "/usr/config/dolphin-emu" "/storage/.config/"
fi
#Check if GC controller profile exists in .config/dolphin-emu
if [ ! -f "/storage/.config/dolphin-emu/GCPadNew.ini" ]; then
cp -r /usr/config/dolphin-emu/GCPadNew.ini.south /storage/.config/dolphin-emu/GCPadNew.ini
fi
#Check if GC custom controller profile exists in .config/dolphin-emu
if [ ! -f "/storage/.config/dolphin-emu/Custom_GCPadNew.ini" ]; then
cp -r "/usr/config/dolphin-emu/GCPadNew.ini.south" "/storage/.config/dolphin-emu/Custom_GCPadNew.ini"

View file

@ -11,13 +11,18 @@ if [ ! -d "/storage/.config/dolphin-emu" ]; then
cp -r "/usr/config/dolphin-emu" "/storage/.config/"
fi
#Check if Wii controller profile exists in .config/dolphin-emu
if [ ! -f "/storage/.config/dolphin-emu/WiimoteNew.ini" ]; then
cp -r "/usr/config/dolphin-emu/WiiControllerProfiles/vremote.ini" "/storage/.config/dolphin-emu/WiimoteNew.ini"
fi
#Check if Wii custom controller profile exists in .config/dolphin-emu
if [ ! -f "/storage/.config/dolphin-emu/Custom_WiimoteNew.ini" ]; then
cp -r "/usr/config/dolphin-emu/WiiControllerProfiles/remote.ini" "/storage/.config/dolphin-emu/Custom_WiimoteNew.ini"
fi
#Gamecube controller profile needed for hotkeys to work
cp -r "/usr/config/dolphin-emu/GCPadNew.ini" "/storage/.config/dolphin-emu/GCPadNew.ini"
cp -r "/usr/config/dolphin-emu/GCPadNew.ini.south" "/storage/.config/dolphin-emu/GCPadNew.ini"
#Link Save States to /roms/savestates/wii
if [ ! -d "/storage/roms/savestates/wii/" ]; then