Skip to content

Commit

Permalink
Merge branch 'hotfix/game-audio-not-working'
Browse files Browse the repository at this point in the history
  • Loading branch information
pathartl committed Dec 10, 2018
2 parents f01416e + f6d37ab commit e7f2352
Showing 1 changed file with 17 additions and 27 deletions.
44 changes: 17 additions & 27 deletions BleemSync.Payload/lolhack/lolhack.sh
Original file line number Diff line number Diff line change
@@ -1,67 +1,60 @@
#!/bin/sh
# BleemSync Payload 0.2.2
killall -s KILL sonyapp ui_menu

PCSX_DIR="/data/AppData/sony/pcsx"

# Extract system files to avoid crashing
mkdir -p /media/System
mkdir -p /media/System/Bios
mkdir -p /media/System/Preferences
mkdir -p /media/System/Preferences/System
mkdir -p /media/System/Preferences/User
mkdir -p /media/System/Databases
mkdir -p /media/System/Region
mkdir -p /media/System/Logs
mkdir -p /media/System/UI

killall ui_menu

if [ ! -d /media/UserData ]
then
killall sonylogo
mkdir -p /media/UserData
cp /data/AppData/* /media/UserData
fi

if [ ! -f /media/System/Bios/romw.bin ]
then
cp -r /gaadata/system/bios/* /media/System/Bios
fi

if [ ! -f /media/System/Preferences/regional.pre ]
then
cp /gaadata/preferences/* /media/System/Preferences
cp /gaadata/preferences/regional.pre /media/System/Preferences/regional.pre
fi

if [ ! -f /media/System/Region/GENINFO ]
then
cp /gaadata/geninfo/* /media/System/Region
fi

killall ui_menu
if [ ! -f /media/System/Logs/ui_menu.log ]
then
touch /media/System/Logs/ui_menu.log
fi

# Overmount some folders
mount -o bind /media/System/Bios /gaadata/system/bios
mount -o bind /media/System/Preferences /gaadata/preferences
mount -o bind /media/System/Preferences/System /gaadata/preferences
mount -o bind /media/System/Preferences/User /data/AppData/sony/ui
mount -o bind /media/System/Databases /gaadata/databases
mount -o bind /media/System/Region /gaadata/geninfo
mount -o bind /media/System/UI /data/sony/ui
#mount -o bind /media/UserData /data/AppData
sync
mount -o bind /media/System/Logs/UI /data/sony/ui

killall ui_menu

# The pcsx.cfg file needs to be copied into the user data folder or controllers may not work.
cd /media/Games
find * -maxdepth 0 -type d -exec mount -o bind /media/Games/{}/GameData /gaadata/{} \;

sync

find * -maxdepth 0 -type d -exec mkdir -p /media/Games/{}/UserData \;
find * -maxdepth 0 -type d -exec mount -o bind /media/Games/{}/UserData /data/AppData/sony/pcsx/{} \;

sync

find * -maxdepth 0 -type d -exec mkdir -p /data/AppData/sony/pcsx/{}/.pcsx \;
find * -maxdepth 0 -type d -exec cp /media/Games/{}/GameData/pcsx.cfg /data/AppData/sony/pcsx/{}/.pcsx/pcsx.cfg \;

sync

cd -

##
Expand Down Expand Up @@ -115,16 +108,13 @@ done
##
##

sync

#sed -i "s/iUiUserSettingLastSelectGameCursorPos.*/iUiUserSettingLastSelectGameCursorPos=0/" /media/data/AppData/sony/ui/user.pre
sed -i "s/iUiUserSettingLastSelectGameCursorPos.*/iUiUserSettingLastSelectGameCursorPos=0/" /data/AppData/sony/ui/user.pre

find / > /media/filelist.log

export PCSX_ESC_KEY=2
cd /data/AppData/sony/pcsx
/usr/sony/bin/ui_menu --power-off-enable > /media/System/ui_menu.log

sync

/usr/sony/bin/ui_menu --power-off-enable > /media/System/ui_menu.log

red_led "12" "0.3"

0 comments on commit e7f2352

Please sign in to comment.