From dbe5e94395ba98721582c5cdab7731a3ebd9a8e5 Mon Sep 17 00:00:00 2001 From: astarivi Date: Fri, 13 Sep 2024 16:31:54 -0500 Subject: [PATCH] Add XGD2 and XGD3 offsets to support 360 images --- xdvdfs-core/src/blockdev.rs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/xdvdfs-core/src/blockdev.rs b/xdvdfs-core/src/blockdev.rs index 65a2724..7d41413 100644 --- a/xdvdfs-core/src/blockdev.rs +++ b/xdvdfs-core/src/blockdev.rs @@ -3,7 +3,12 @@ use maybe_async::maybe_async; #[cfg(not(feature = "sync"))] use alloc::boxed::Box; -const XDVD_OFFSETS: &[u64] = &[0, 387 * 1024 * 1024]; +const XDVD_OFFSETS: &[u64] = &[ + 0, // RAW XISO + 405798912, // XGD1 + 265879552, // XGD2 + 34078720, // XGD3 +]; /// Trait for read operations on some block device containing an XDVDFS filesystem ///