Beispiel #1
0
 public static ProjectData.HashList <uint> LoadListsPropertyNames(
     this ProjectData.Manager manager)
 {
     return(manager.LoadLists(
                "*.namelist",
                s => s.HashJenkins(),
                s => s));
 }
Beispiel #2
0
 public static ProjectData.HashList <uint> LoadListsFileNames(
     this ProjectData.Manager manager)
 {
     return(manager.LoadLists(
                "*.filelist",
                s => s.HashFileName(),
                s => s.Replace('\\', '/')));
 }
Beispiel #3
0
 public static ProjectData.HashList <uint> LoadListsColumnNames(
     this ProjectData.Manager manager)
 {
     return(manager.LoadLists(
                "*.columnlist",
                s => s.HashCRC32(),
                s => s.ToLowerInvariant()));
 }
Beispiel #4
0
 public static ProjectData.HashList <uint> LoadListsFileNames(
     this ProjectData.Manager manager)
 {
     return(manager.LoadLists(
                "*.filelist",
                s => Path.GetFileName(s).HashJenkins(),
                s => s.ToLowerInvariant()));
 }
Beispiel #5
0
 public static ProjectData.HashList <uint> LoadListsTypeNames(
     this ProjectData.Manager manager)
 {
     return(manager.LoadLists(
                "*.typelist",
                s => s.HashFNV32(),
                s => s.ToLowerInvariant()));
 }
Beispiel #6
0
 public static ProjectData.HashList <ulong> LoadListsFileNames(
     this ProjectData.Manager manager)
 {
     return(manager.LoadLists(
                "*.filelist",
                s => s.HashFNV64(),
                s => s.ToLowerInvariant()));
 }
Beispiel #7
0
 public static ProjectData.HashList <uint> LoadFileLists(
     this ProjectData.Manager manager)
 {
     return(manager.LoadLists(
                "*.filelist",
                FileHasher,
                FileModifier));
 }
Beispiel #8
0
 public static ProjectData.HashList <uint> LoadFileLists(
     this ProjectData.Manager manager,
     Action <uint, string, string> extra)
 {
     return(manager.LoadLists(
                "*.filelist",
                FileHasher,
                FileModifier,
                extra));
 }
        public static ProjectData.HashList <ulong> LoadListsSubFatNames(this ProjectData.Manager manager,
                                                                        int bigVersion)
        {
            if (bigVersion >= 9) // TODO: check if this is right...
            {
                return(manager.LoadLists("*.subfatlist",
                                         a => CRC64.Hash(a.ToLowerInvariant()),
                                         s => s.Replace("/", "\\")));
            }

            return(manager.LoadLists("*.subfatlist",
                                     a => (ulong)CRC32.Hash(a.ToLowerInvariant()),
                                     s => s.Replace("\\", "/")));
        }
Beispiel #10
0
 private void LoadProject()
 {
     try
     {
         this.Manager = ProjectData.Manager.Load();
         this.projectComboBox.Items.AddRange(this.Manager.ToArray());
         this.SetProject(this.Manager.ActiveProject);
     }
     catch (Exception e)
     {
         MessageBox.Show(
             "There was an error while loading project data." +
             Environment.NewLine + Environment.NewLine +
             e.ToString() +
             Environment.NewLine + Environment.NewLine +
             "(You can press Ctrl+C to copy the contents of this dialog)",
             "Critical Error",
             MessageBoxButtons.OK,
             MessageBoxIcon.Error);
         this.Close();
     }
 }
 public static ProjectData.HashList <uint> LoadListsFileNames(this ProjectData.Manager manager,
                                                              int bigVersion)
 {
     return(manager.LoadLists("*.filelist", Hasher, Modifier));
 }
Beispiel #12
0
 public static ProjectData.HashList <uint> LoadListsAnimationNames(this ProjectData.Manager manager)
 {
     return(manager.LoadLists("*.animlist", AnimationCacheBinaryFile.ComputeNameHash, Modifier));
 }
Beispiel #13
0
 public static ProjectData.HashList <ulong> LoadListsFileNames(this ProjectData.Manager manager)
 {
     return(manager.LoadLists("*.filelist", ArchiveFile.ComputeNameHash, Modifier));
 }
Beispiel #14
0
 public static ProjectData.HashList <ulong> LoadListsInstance64Names(this ProjectData.Manager manager)
 {
     return(manager.LoadLists("*.instancelist64", a => a.HashFNV64(), a => a.ToLowerInvariant()));
 }
 public static ProjectData.HashList <uint> LoadListsPropertySetSymbolNames(this ProjectData.Manager manager)
 {
     return(manager.LoadLists("*.symbollist", s => s.HashSymbol(), s => s.Replace('/', '\\')));
 }
 public static ProjectData.HashList <uint> LoadListsPropertySetNames(this ProjectData.Manager manager)
 {
     return(manager.LoadLists("*.propsetlist", s => s.HashFileName(), s => s.Replace('/', '\\')));
 }