static void Main(string[] args) { Crosswalk.Message m = SerializationHelper.Deserialize <Crosswalk.Message>("Temp.temp", false, ""); searchPath = m.Messages[0]; SerializationHelper.DeleteFile("Temp.temp"); if (SerializationHelper.FolderExists(m.Messages[0])) { IEnumerable <string> files = SerializationHelper.GetFiles(m.Messages[0], ".dll"); if (files.Count() > 0) { Console.WriteLine(files.Count() + " Libraries Found."); Console.WriteLine(); SearchFiles(files); Console.WriteLine(); Console.WriteLine(objects.Objects.Count + " Viable Createable Objects Found."); if (objects.Shaders.Count > 0) { Console.WriteLine(objects.Shaders.Count + " Materials Found."); } Console.WriteLine("< End Search >"); } else { Console.WriteLine("No createable objects found in any available directories."); } Type[] types = new Type[] { typeof(EonDictionary <string, string>) }; SerializationHelper.Serialize <ObjectListing>(objects, savePath, types); Console.ReadKey(); } else { SerializationHelper.CreateFolder(searchPath); Main(null); } }
void StartLibraryReader() { ProcessStartInfo start = new ProcessStartInfo("EEDK.LibraryReader.exe"); Process reader = new Process(); reader.StartInfo = start; reader.Start(); reader.WaitForExit(); Crosswalk.InterOperations.Project.CreatableObjects = SerializationHelper.Deserialize <ObjectListing>("Listing.lst"); SerializationHelper.DeleteFile("Listing.lst"); SaveProject(); SwitchScreen("MainScreen"); }