Skip to content

Commit

Permalink
fixed example gen
Browse files Browse the repository at this point in the history
  • Loading branch information
kipcode66 committed Jul 29, 2024
1 parent b2f139a commit 60d54c4
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions romhack/examples/gen.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
use futures::{AsyncRead, AsyncSeek, AsyncWrite, AsyncWriteExt};
use geckolib::{
iso::{
disc::{DiscType, PartHeader, TitleMetaData, WiiDiscRegionAgeRating, WiiPartition},
disc::{PartHeader, TitleMetaData, WiiDiscRegionAgeRating, WiiPartition},
write::DiscWriter,
},
vfs::GeckoFS,
Expand Down Expand Up @@ -103,12 +103,12 @@ fn main() -> color_eyre::eyre::Result<()> {
wii_magic: 0x5D1C9EA3,
gc_magic: 0,
game_title,
disable_hash_verif: 0,
disable_disc_encrypt: 0,
disable_hash_verif: false,
disable_disc_encrypt: false,
padding: [0; 0x39E],
},
disc_region: geckolib::iso::disc::WiiDiscRegion {
region: 1,
region: geckolib::iso::disc::WiiDiscRegions::NTSCU,
age_rating: WiiDiscRegionAgeRating::default(),
},
partitions: geckolib::iso::disc::WiiPartitions {
Expand Down Expand Up @@ -144,8 +144,7 @@ fn main() -> color_eyre::eyre::Result<()> {
},
));
{
let is_wii = out.get_type() == DiscType::Wii;
fs.serialize(&mut out, is_wii).await?;
fs.serialize(&mut out).await?;
#[cfg(feature = "log")]
log::info!("Encrypting the ISO");
out.close().await?;
Expand Down

0 comments on commit 60d54c4

Please sign in to comment.