From de69415df6c277ab1c77836f2550fd47f720fd45 Mon Sep 17 00:00:00 2001 From: Kurt Date: Mon, 28 Nov 2016 23:14:13 -0800 Subject: [PATCH] Didn't catch em all --- pk3DS/Subforms/Gen6/StarterEditor6.cs | 6 +----- pk3DS/Subforms/Gen7/MegaEvoEditor7.cs | 1 - 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/pk3DS/Subforms/Gen6/StarterEditor6.cs b/pk3DS/Subforms/Gen6/StarterEditor6.cs index ec2dce7..c1816de 100644 --- a/pk3DS/Subforms/Gen6/StarterEditor6.cs +++ b/pk3DS/Subforms/Gen6/StarterEditor6.cs @@ -10,11 +10,7 @@ public StarterEditor6() { specieslist[0] = "---"; Array.Resize(ref specieslist, Main.Config.MaxSpeciesID); - - string[] personalList = Directory.GetFiles("personal"); - var personal = new byte[personalList.Length][]; - for (int i = 0; i < personalList.Length; i++) - personal[i] = File.ReadAllBytes("personal" + Path.DirectorySeparatorChar + i.ToString("000") + ".bin"); + if (!File.Exists(CROPath)) { Util.Error("CRO does not exist! Closing.", CROPath); diff --git a/pk3DS/Subforms/Gen7/MegaEvoEditor7.cs b/pk3DS/Subforms/Gen7/MegaEvoEditor7.cs index aa5486b..bface9e 100644 --- a/pk3DS/Subforms/Gen7/MegaEvoEditor7.cs +++ b/pk3DS/Subforms/Gen7/MegaEvoEditor7.cs @@ -15,7 +15,6 @@ public partial class MegaEvoEditor7 : Form private readonly string[] types = Main.getText(TextName.Types); private readonly string[] specieslist = Main.getText(TextName.SpeciesNames); private readonly string[] itemlist = Main.getText(TextName.ItemNames); - private readonly byte[] personalData = File.ReadAllBytes(Directory.GetFiles("personal").Last()); private readonly GroupBox[] groupbox_spec; private readonly ComboBox[] forme_spec; private readonly ComboBox[] item_spec;