Skip to content

armgit / gecko

Public Imported from GitHub
0

A GameCube/Wii emulator and debugger written in Rust.

partition offset wrong

Layle3b73daf3157f
diff --git a/crates/image/src/rvz.rs b/crates/image/src/rvz.rs
index 1be108f..63b5354 100644
--- a/crates/image/src/rvz.rs
+++ b/crates/image/src/rvz.rs
@@ -762,7 +762,9 @@ impl crate::Dvd for Rvz {
fn data_partition_offset(&self) -> u64 {
match self.data_partition {
- Some(idx) => (self.partitions[idx].data[0].first_sector as u64) * 0x8000,
+ Some(idx) => {
+ (self.partitions[idx].data[0].first_sector as u64) * WII_BLOCK_TOTAL_SIZE - WII_PARTITION_DATA_OFFSET
+ }
None => 0,
}
}