From 32085dc009581506478d2d225be79b6edf6c095b Mon Sep 17 00:00:00 2001 From: refractionpcsx2 Date: Tue, 28 Dec 2021 09:28:58 +0000 Subject: [PATCH] CDVD: Add detection for PS2 Linux Disc 2 --- pcsx2/CDVD/CDVDaccess.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/pcsx2/CDVD/CDVDaccess.cpp b/pcsx2/CDVD/CDVDaccess.cpp index d0193b9b26..38673e320d 100644 --- a/pcsx2/CDVD/CDVDaccess.cpp +++ b/pcsx2/CDVD/CDVDaccess.cpp @@ -107,6 +107,16 @@ static int CheckDiskTypeFS(int baseType) { } + // PS2 Linux disc 2, doesn't have a System.CNF or a normal ELF + try + { + IsoFile file(rootdir, L"P2L_0100.02;1"); + return CDVD_TYPE_PS2DVD; + } + catch (Exception::FileNotFound&) + { + } + try { IsoFile file(rootdir, L"PSX.EXE;1");