Skip to content

Commit

Permalink
core: Add XGD2 and XGD3 offsets to support Xbox 360 images (#94)
Browse files Browse the repository at this point in the history
  • Loading branch information
astarivi authored Sep 15, 2024
1 parent 8db49da commit 9278a07
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion xdvdfs-core/src/blockdev.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
///
Expand Down

0 comments on commit 9278a07

Please sign in to comment.