Skip to content

Commit

Permalink
Actually generate a valid (random) mii for bin conversions
Browse files Browse the repository at this point in the history
  • Loading branch information
XorTroll committed Aug 16, 2023
1 parent a31e9d7 commit 2e242d4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion emuiibo/src/amiibo/bin.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ use nx::util;
use nx::rand::RandomGenerator;
use nx::result::*;
use crate::fsext;
use crate::miiext;
use super::ntag::Manufacturer1;
use super::ntag::Manufacturer2;
use super::{ntag, fmt};
Expand Down Expand Up @@ -1391,7 +1392,7 @@ impl PlainFormat {
write_counter_be.swap_bytes()
}
},
mii_charinfo: Default::default(), // TODO: convert from 3DS format!
mii_charinfo: miiext::generate_random_mii()?, // TODO: convert from 3DS format! meanwhile set a random mii
areas: {
let flags = self.dec_data.settings.flags;
let access_id_be = self.dec_data.settings.access_id_be;
Expand Down

0 comments on commit 2e242d4

Please sign in to comment.