diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index 8c3d32d..87de2b3 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -71,7 +71,6 @@ jobs: - name: Compile PSX MMCE build run: | make release COMMIT_HASH=${GITHUB_SHA::7} BINDIR=PSX_MMCE/ PSX=1 MMCE=1 ${{ env.DEBUG }} PRINTF=${{ github.event.inputs.name }} - - name: list run: | git ls-files -i --exclude-standard -c diff --git a/Makefile b/Makefile index f0640c6..9f86231 100644 --- a/Makefile +++ b/Makefile @@ -22,6 +22,7 @@ XCDVD_READKEY ?= 0 # Enable the newer sceCdReadKey checks, which are only suppor UDPTTY ?= 0 # printf over UDP PPCTTY ?= 0 # printf over PowerPC UART 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) @@ -77,6 +78,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 diff --git a/src/main.c b/src/main.c index 3f0b3d6..e9734dd 100644 --- a/src/main.c +++ b/src/main.c @@ -44,9 +44,12 @@ 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 PPCTTY - //no error handling bc nothing to do in this case - SifExecModuleBuffer(ppctty_irx, size_ppctty_irx, 0, NULL, NULL); + SifExecModuleBuffer(ppctty_irx, size_ppctty_irx, 0, NULL, NULL);//no error handling bc nothing to do in this case #endif #ifdef UDPTTY if (loadDEV9())