Skip to content

Commit

Permalink
Merge pull request #53 from mtrivs/patch-1
Browse files Browse the repository at this point in the history
feature/2-controller-support
  • Loading branch information
pathartl committed Dec 16, 2018
2 parents 2d7012a + 1e56470 commit a608017
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
2 changes: 2 additions & 0 deletions BleemSync.Payload/lolhack/20-joystick.rules
@@ -0,0 +1,2 @@
KERNEL=="js0",SUBSYSTEMS=="input",SYMLINK+="input/joystick0"
KERNEL=="js1",SUBSYSTEMS=="input",SYMLINK+="input/joystick1"
6 changes: 6 additions & 0 deletions BleemSync.Payload/lolhack/boot.sh
Expand Up @@ -39,6 +39,7 @@ umount /gaadata || MOUNT_FAIL=1
mkdir -p /tmp/gaadatatmp /tmp/datatmp
mount -o bind /tmp/gaadatatmp /gaadata || MOUNT_FAIL=1
mount -o bind /tmp/datatmp /data || MOUNT_FAIL=1
mount -o bind /media/lolhack/20-joystick.rules /etc/udev/rules.d/20-joystick.rules || MOUNT_FAIL=1
[ $MOUNT_FAIL -eq 1 ] && reboot && exit

# Create gaadata on tmpfs
Expand All @@ -64,6 +65,11 @@ ln -s /usr/sony/bin/plugins /tmp/datatmp/AppData/sony/pcsx/plugins
# Fix for last selected game issue. If not in place user may experience UI issue
sed -i "s/iUiUserSettingLastSelectGameCursorPos.*/iUiUserSettingLastSelectGameCursorPos=0/" /tmp/datatmp/AppData/sony/ui/user.pre

# Reload and apply udev rules that were overmounted above
# Allows both controllers to be detected through a USB hub
udevadm control --reload-rules
udevadm trigger

# Fix for line endings. BAD WINDOWS
find /media -name *.cfg -exec sed -i 's/\r//g' {} \;
find /media -name *.pre -exec sed -i 's/\r//g' {} \;
Expand Down

0 comments on commit a608017

Please sign in to comment.