50 lines
1.3 KiB
Text
50 lines
1.3 KiB
Text
# SPDX-License-Identifier: GPL-2.0
|
|
# Copyright (C) 2023-present BrooksyTech (https://github.com/brooksytech)
|
|
|
|
. /etc/profile
|
|
|
|
#Set up gzdoom
|
|
if [ ! -d "/storage/.config/gzdoom/" ]; then
|
|
cp -rf /usr/config/gzdoom /storage/.config/
|
|
sed -i '/Joy7=/c\Joy7=togglemap' /storage/.config/gzdoom/gzdoom.ini
|
|
sed -i '/Joy8=/c\Joy8=menu_main' /storage/.config/gzdoom/gzdoom.ini
|
|
sed -i '/Axis0scale=/c\Axis0scale=-0.8' /storage/.config/gzdoom/gzdoom.ini
|
|
sed -i '/Axis1scale=/c\Axis1scale=-0.6' /storage/.config/gzdoom/gzdoom.ini
|
|
sed -i '/vid_defheight=/c\vid_defheight=320' /storage/.config/gzdoom/gzdoom.ini
|
|
sed -i '/vid_defwidth=/c\vid_defwidth=480' /storage/.config/gzdoom/gzdoom.ini
|
|
fi
|
|
|
|
#Map ppsspp controls
|
|
if grep RG351M -q "/stprage/.config/ppsspp/PSP/SYSTEM/controls.ini"
|
|
then
|
|
exit 1
|
|
else
|
|
cat <<EOF >/storage/.config/ppsspp/PSP/SYSTEM/controls.ini
|
|
#RG351M
|
|
[ControlMapping]
|
|
Up = 10-19
|
|
Down = 10-20
|
|
Left = 10-21
|
|
Right = 10-22
|
|
Circle = 10-189
|
|
Cross = 10-190
|
|
Square = 10-188
|
|
Triangle = 10-191
|
|
Start = 10-197
|
|
Select = 10-196
|
|
L = 10-193
|
|
R = 10-192
|
|
An.Up = 10-4002
|
|
An.Down = 10-4003
|
|
An.Left = 10-4000
|
|
An.Right = 10-4001
|
|
Fast-forward = 1-61
|
|
Pause = 10-106
|
|
Save State = 10-4010
|
|
Load State = 10-4008
|
|
RightAn.Up = 10-4007
|
|
RightAn.Down = 10-4006
|
|
RightAn.Left = 10-4005
|
|
RightAn.Right = 10-4004
|
|
EOF
|
|
fi
|