Beispiel #1
0
        public static Folder GetAppFolder()
        {
            string[] names      = EOSAppGenerator.GenerateNames();
            string   str        = names[0];
            string   foldername = names[1].ToLower().Replace(" ", "_").Trim();
            string   data       = str.Replace(" ", "_").Trim();
            Folder   folder     = new Folder(foldername);

            folder.files.Add(new FileEntry(Computer.generateBinaryString(1024), "app.pkg"));
            StringBuilder stringBuilder = new StringBuilder("----- [" + str + "] Save Data -----\n\n");
            int           num           = 8 + Utils.random.Next(8);

            for (int index = 0; index < num; ++index)
            {
                stringBuilder.Append(EOSAppGenerator.GenerateAppSaveLine());
                stringBuilder.Append("\n\n");
            }
            folder.files.Add(new FileEntry(stringBuilder.ToString(), FileSanitiser.purifyStringForDisplay(data) + ".sav"));
            return(folder);
        }
Beispiel #2
0
        public static Folder GenerateEOSFolder()
        {
            Folder folder1 = new Folder("eos");
            Folder folder2 = new Folder("apps");
            Folder folder3 = new Folder("system");
            Folder folder4 = new Folder("notes");
            Folder folder5 = new Folder("mail");

            folder1.folders.Add(folder2);
            folder1.folders.Add(folder4);
            folder1.folders.Add(folder5);
            folder1.folders.Add(folder3);
            folder3.files.Add(new FileEntry(Computer.generateBinaryString(1024), "core.sys"));
            folder3.files.Add(new FileEntry(Computer.generateBinaryString(1024), "runtime.bin"));
            int num = 4 + Utils.random.Next(8);

            for (int index = 0; index < num; ++index)
            {
                folder2.folders.Add(EOSAppGenerator.GetAppFolder());
            }
            return(folder1);
        }
Beispiel #3
0
 public static string GenerateName()
 {
     return(EOSAppGenerator.GenerateNames()[0]);
 }