From fcedbb2255a1565b6816817f39ab93d833ee9d65 Mon Sep 17 00:00:00 2001 From: bryanthaboi Date: Thu, 8 Oct 2026 17:14:40 -0400 Subject: [PATCH] potential ps4 fix --- docs/platforms/ps4.md | 5 +++-- docs/ps4-install.md | 11 +++++++++-- scripts/build_ps4.sh | 8 ++++---- scripts/ps4/love-ps4-runtime.sha256 | 13 +++++++------ 4 files changed, 23 insertions(+), 14 deletions(-) diff --git a/docs/platforms/ps4.md b/docs/platforms/ps4.md index ffa02144..5ff4658e 100644 --- a/docs/platforms/ps4.md +++ b/docs/platforms/ps4.md @@ -1,8 +1,9 @@ # PlayStation 4 Homebrew (GoldHEN) build: `gen1recomp-*-ps4.pkg`, the game fused with -[LÖVE for PS4](https://github.com/tomasmorello/love-ps4) (LÖVE 11.5), pinned -like love-nx is for the Switch. PS4 port by +[LÖVE for PS4](https://github.com/tomasmorello/love-ps4) (LÖVE 11.5), built +from the [bryanthaboi/love-ps4](https://github.com/bryanthaboi/love-ps4) fork +and pinned like love-nx is for the Switch. PS4 port by [Tomas Morello](https://github.com/tomasmorello). Tested on hardware with Red, Blue and Yellow; Gen 2 and Gen 3 are not tested yet. diff --git a/docs/ps4-install.md b/docs/ps4-install.md index b36335f9..7ed31ebe 100644 --- a/docs/ps4-install.md +++ b/docs/ps4-install.md @@ -8,7 +8,8 @@ runtime in one installable package. Install it, then import your own legal > set that up. PS4 port by [Tomas Morello](https://github.com/tomasmorello), on -[LÖVE for PS4](https://github.com/tomasmorello/love-ps4) (LÖVE 11.5). +[LÖVE for PS4](https://github.com/tomasmorello/love-ps4) (LÖVE 11.5), built from +the [bryanthaboi/love-ps4](https://github.com/bryanthaboi/love-ps4) fork. **Tested on real hardware:** Pokemon Red, Blue and Yellow (ROM import, play, save and load, mods, returning to the launcher). **Not tested yet:** Gold, @@ -26,6 +27,11 @@ Updating: install the newer `.pkg` the same way; it installs over the old one. Saves, imported ROMs and mods live in `/data/love/pokemon-love2d/`, outside the package. **Do not delete that folder** when updating. +If FTP or a file manager cannot open `/data/love/cache` or +`/data/love/pokemon-love2d` (installs from 0.3.63 and earlier created them +locked), install the current package and launch it once: it unlocks the whole +`/data/love` folder on first start. + ## 2. Import your ROM The PS4 has no file picker, so the launcher reads an inbox folder, like the @@ -70,4 +76,5 @@ scripts/build_ps4.sh --fetch --fused --version X.Y.Z Needs the OpenOrbis PS4 Toolchain v0.5.4 packaging tools (`OO_PS4_TOOLCHAIN`) and bash 4+. The runtime is downloaded from a pinned LÖVE for PS4 release and -verified against `scripts/ps4/love-ps4-runtime.sha256`. +verified against `scripts/ps4/love-ps4-runtime.sha256`, which names the repo +(`bryanthaboi/love-ps4`) and tag to fetch. diff --git a/scripts/build_ps4.sh b/scripts/build_ps4.sh index fdb32db1..14da25c8 100755 --- a/scripts/build_ps4.sh +++ b/scripts/build_ps4.sh @@ -23,9 +23,8 @@ # OpenOrbis PS4 Toolchain v0.5.4 (bin/linux or bin/macos with # PkgTool.Core and create-gp4), plus bash 4+. # -# The runtime is LÖVE 11.5 for PS4 by Tomas Morello -# (https://github.com/tomasmorello/love-ps4), pinned the way love-nx is pinned -# for the Switch. +# The runtime is LÖVE 11.5 for PS4 by Tomas Morello, built from the +# bryanthaboi/love-ps4 fork and pinned the way love-nx is pinned for the Switch. # # Non-goals: installing on a console, FTP uploads, ROM handling. set -euo pipefail @@ -61,10 +60,11 @@ manifest_field() { # manifest_field printf '%s' "$v" } TAG="$(manifest_field tag)" +REPO="$(manifest_field repo)" ZIP_NAME="love-ps4-${TAG#v}-runtime.zip" RUNTIME_DIR="$ROOT/.bazinga/love-ps4/$TAG" ZIP="$RUNTIME_DIR/$ZIP_NAME" -BASE_URL="${GEN1_LOVE_PS4_BASE_URL:-https://github.com/tomasmorello/love-ps4/releases/download/$TAG}" +BASE_URL="${GEN1_LOVE_PS4_BASE_URL:-https://github.com/$REPO/releases/download/$TAG}" sha256_of() { if command -v sha256sum >/dev/null 2>&1; then sha256sum "$1" | awk '{print $1}' diff --git a/scripts/ps4/love-ps4-runtime.sha256 b/scripts/ps4/love-ps4-runtime.sha256 index cdbf207b..8c2f5819 100644 --- a/scripts/ps4/love-ps4-runtime.sha256 +++ b/scripts/ps4/love-ps4-runtime.sha256 @@ -1,8 +1,9 @@ -# LÖVE for PS4 — pinned runtime (Tomas Morello) -# https://github.com/tomasmorello/love-ps4/releases +# LÖVE for PS4 pinned runtime, built from bryanthaboi/love-ps4 (fork of tomasmorello/love-ps4) +# https://github.com/bryanthaboi/love-ps4/releases # -# scripts/build_ps4.sh --fetch downloads from the release and refuses -# it unless its SHA-256 matches. Bump both lines together. +# scripts/build_ps4.sh --fetch downloads from release and refuses +# it unless its SHA-256 matches. Bump tag and zip lines together. -tag v0.9.3 -love-ps4-0.9.3-runtime.zip 8cc66a447738a6772fc79775d7306791fb63542582e420cf08db8cb0420eded7 +repo bryanthaboi/love-ps4 +tag v0.9.4 +love-ps4-0.9.4-runtime.zip 4795ec523e32e1bb121211740caf0b652ae35335ed08782fd4b9b4a39098e5b7