From bfe422fb98ddb9e8f40138347f4f577e453b04b3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mat=C3=ADas=20Israelson?= <57065102+israpps@users.noreply.github.com> Date: Wed, 14 Feb 2024 13:36:06 -0300 Subject: [PATCH 1/5] Allow disc stop at start --- src/main.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/main.c b/src/main.c index e55bf34..ea0fd6d 100644 --- a/src/main.c +++ b/src/main.c @@ -209,6 +209,10 @@ int main(int argc, char *argv[]) DPRINTF("disabling MODLOAD device blacklist/whitelist\n"); sbv_patch_disable_prefix_check(); /* disable the MODLOAD module black/white list, allowing executables to be freely loaded from any device. */ +#ifdef DISC_STOP_AT_BOOT + sceCdStop(); + sceCdSync(0); +#endif #ifdef UDPTTY if (loadDEV9()) loadUDPTTY(); From f9642cce7b41d5c264bb9ac6eef42539447a1ff1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mat=C3=ADas=20Israelson?= <57065102+israpps@users.noreply.github.com> Date: Wed, 14 Feb 2024 13:39:15 -0300 Subject: [PATCH 2/5] Update Makefile --- Makefile | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Makefile b/Makefile index 9b99fc5..abdfb15 100644 --- a/Makefile +++ b/Makefile @@ -20,6 +20,7 @@ PROHBIT_DVD_0100 ?= 0 # prohibit the DVD Players v1.00 and v1.01 from being boot XCDVD_READKEY ?= 0 # Enable the newer sceCdReadKey checks, which are only supported by a newer CDVDMAN module. UDPTTY ?= 0 # printf ove UDP PRINTF ?= NONE +DISC_STOP_AT_BOOT ?= 0 HOMEBREW_IRX ?= 0 # if we need homebrew SIO2MAN, MCMAN, MCSERV & PADMAN embedded, else, builtin console drivers are used FILEXIO_NEED ?= 0 # if we need filexio and imanx loaded for other features (HDD, mx4sio, etc) @@ -76,6 +77,10 @@ ifneq ($(VERBOSE), 1) .SILENT: endif +ifeq ($(DISC_STOP_AT_BOOT, 1) + EE_CFLAGS += -DDISC_STOP_AT_BOOT +endif + ifeq ($(MX4SIO), 1) HOMEBREW_IRX = 1 FILEXIO_NEED = 1 From 7aa6e05d75497e0e3cba5c1abc5c544c6af15282 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mat=C3=ADas=20Israelson?= <57065102+israpps@users.noreply.github.com> Date: Wed, 14 Feb 2024 13:42:40 -0300 Subject: [PATCH 3/5] Update CI.yml --- .github/workflows/CI.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index d0b41fe..1306e7d 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -63,6 +63,11 @@ jobs: run: | make release COMMIT_HASH=${GITHUB_SHA::7} BINDIR=PS2_HDD/ HDD=1 ${{ env.DEBUG }} PRINTF=${{ github.event.inputs.name }} + - name: Compile PS2 discboot build + run: | + make release COMMIT_HASH=${GITHUB_SHA::7} BINDIR=PS2_BOOTDISK/ DISC_STOP_AT_BOOT=1 ${{ env.DEBUG }} PRINTF=${{ github.event.inputs.name }} + echo "the executables on this folder are the same than normal PS2BBL, but they try to stop disc spinning as soon as possible, ideal for freedv">PS2_BOOTDISK/README.TXT + - name: list run: | git ls-files -i --exclude-standard -c @@ -75,6 +80,7 @@ jobs: mv PSX/ release/PSX/ mv PS2_HDD/ release/PS2_HDD/ mv PS2_MX4SIO/ release/PS2_MX4SIO/ + mc PS2_BOOTDISK/ release/PS2_BOOTDISK/ - name: pack release run: | From 91a1ea6bbe03db3b1230b903f20b3d0947c6e7fd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mat=C3=ADas=20Israelson?= <57065102+israpps@users.noreply.github.com> Date: Wed, 14 Feb 2024 13:44:13 -0300 Subject: [PATCH 4/5] Update Makefile --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index abdfb15..e7b5d75 100644 --- a/Makefile +++ b/Makefile @@ -77,7 +77,7 @@ ifneq ($(VERBOSE), 1) .SILENT: endif -ifeq ($(DISC_STOP_AT_BOOT, 1) +ifeq ($(DISC_STOP_AT_BOOT), 1) EE_CFLAGS += -DDISC_STOP_AT_BOOT endif From cf5554c0d756dc157e9024efe35c9ffee8b0e087 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mat=C3=ADas=20Israelson?= <57065102+israpps@users.noreply.github.com> Date: Wed, 14 Feb 2024 14:39:29 -0300 Subject: [PATCH 5/5] Update CI.yml --- .github/workflows/CI.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index 1306e7d..6da3108 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -80,7 +80,7 @@ jobs: mv PSX/ release/PSX/ mv PS2_HDD/ release/PS2_HDD/ mv PS2_MX4SIO/ release/PS2_MX4SIO/ - mc PS2_BOOTDISK/ release/PS2_BOOTDISK/ + mv PS2_BOOTDISK/ release/PS2_BOOTDISK/ - name: pack release run: |