Skip to content

Commit

Permalink
Merge pull request #972 from tabreturn/main
Browse files Browse the repository at this point in the history
Fix Demon of Sakura Pass music
  • Loading branch information
Cebion authored Nov 28, 2024
2 parents e34668a + 4e28014 commit 7500201
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion ports/demonofsakurapass/Demon of Sakura Pass.sh
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,21 @@ if [ -f "./gamedata/The Demon of Sakura Pass.exe" ]; then
./7zzs x "./gamedata/The Demon of Sakura Pass.exe" -o"./gamedata/"
# Patch data.win
$controlfolder/xdelta3 -d -s "./gamedata/data.win" "./gamedata/patch.xdelta3" "./gamedata/game.droid"
[ $? -eq 0 ] && rm "./gamedata/data.win" || echo "Patching of data.win has failed"
[ $? -eq 0 ] && rm "./gamedata/data.win" || pm_message "Patching of data.win has failed"
# Delete unneeded files
rm -f gamedata/*.{dll,ini,exe}
fi

# Check if there are any .ogg or .mp3 files in the ./gamedata directory
if [ -n "$(ls ./gamedata/*.ogg 2>/dev/null)" ]; then
mkdir -p ./assets
mv ./gamedata/*.ogg ./assets/ 2>/dev/null
pm_message "Moved .ogg files from ./gamedata to ./assets/"
zip -r -0 ./game.apk ./assets/
pm_message "Zipped contents to ./game.apk"
rm -Rf ./assets/
fi

$GPTOKEYB "gmloader" -c ./demonofsakurapass.gptk &

$ESUDO chmod +x "$GAMEDIR/gmloader"
Expand Down

0 comments on commit 7500201

Please sign in to comment.