Ejemplo n.º 1
0
 public SMSeedOptions()
 {
     smRom = new Lazy <byte[]>(() => {
         using var ips = OpenReadInnerStream(Ips.First());
         var rom       = File.ReadAllBytes(smFile);
         FileData.Rom.ApplyIps(rom, ips);
         return(rom);
     });
 }
Ejemplo n.º 2
0
 public SMZ3SeedOptions()
 {
     smz3Rom = new Lazy <byte[]>(() => {
         using var sm  = File.OpenRead(smFile);
         using var z3  = File.OpenRead(z3File);
         using var ips = OpenReadInnerStream(Ips.First());
         var rom       = FileData.Rom.CombineSMZ3Rom(sm, z3);
         FileData.Rom.ApplyIps(rom, ips);
         return(rom);
     });
 }