コード例 #1
0
 public BigFileType()
 {
     mName            = "Unknown";
     mDescription     = "Unknown BigFile type";
     mMasterIndexType = IndexType.Unknown;
     mHashLookupTable = null;
     mDLLPath         = this.GetType().Assembly.Location;
     mDLLPath         = Path.GetDirectoryName(mDLLPath);
 }
コード例 #2
0
 public BigFileTypeDefiancePC()
     : base()
 {
     Name            = "DefiancePC";
     Description     = "Legacy of Kain: Defiance (PC)";
     MasterIndexType = IndexType.SR2PC;
     HashLookupTable = new FlatFileHashLookupTable("Defiance", Path.Combine(mDLLPath, "Hashes-Defiance.txt"));
     FileTypes       = new FileType[]
     {
         BF.FileType.FromType(BF.FileType.FILE_TYPE_RAWImage),
         BF.FileType.FromType(BF.FileType.FILE_TYPE_MUL_Defiance),
         new FileType()
     };
 }
コード例 #3
0
 public BigFileTypeSoulReaver2PC()
     : base()
 {
     Name            = "SoulReaver2PC";
     Description     = "Soul Reaver 2 (PC)";
     MasterIndexType = IndexType.SR2PC;
     HashLookupTable = new FlatFileHashLookupTable("SR2", Path.Combine(mDLLPath, "Hashes-SR2.txt"));
     FileTypes       = new FileType[]
     {
         BF.FileType.FromType(BF.FileType.FILE_TYPE_STR_SR2_PC),
         BF.FileType.FromType(BF.FileType.FILE_TYPE_RAWImage),
         new FileType()
     };
 }
コード例 #4
0
 public BigFileTypeWaltDisneyMagicalRacingTour()
     : base()
 {
     Name            = "DisneyRacing";
     Description     = "Walt Disney Magical Racing Tour (PlayStation)";
     MasterIndexType = IndexType.Gex2;
     HashLookupTable = new FlatFileHashLookupTable("DisneyRacing", Path.Combine(mDLLPath, "Hashes-DisneyRacing.txt"));
     FileTypes       = new FileType[]
     {
         BF.FileType.FromType(BF.FileType.FILE_TYPE_SND_Akuji),
         BF.FileType.FromType(BF.FileType.FILE_TYPE_TIM_4),
         BF.FileType.FromType(BF.FileType.FILE_TYPE_TIM_8),
         BF.FileType.FromType(BF.FileType.FILE_TYPE_TIM_16),
         BF.FileType.FromType(BF.FileType.FILE_TYPE_TIM_24),
         new FileType()
     };
 }
コード例 #5
0
 public BigFileTypeSoulReaver2PlayStation2()
     : base()
 {
     Name            = "SoulReaver2PS2";
     Description     = "Soul Reaver 2 (PlayStation 2)";
     MasterIndexType = IndexType.SR2PS2;
     HashLookupTable = new FlatFileHashLookupTable("SR2", Path.Combine(mDLLPath, "Hashes-SR2.txt"));
     FileTypes       = new FileType[]
     {
         //BF.FileType.FromType(BF.FileType.FILE_TYPE_STR_SR2_PS2),
         //BF.FileType.FromType(BF.FileType.FILE_TYPE_RAWImage),
         BF.FileType.FromType(BF.FileType.FILE_TYPE_RAW_SR2_PS2),
         BF.FileType.FromType(BF.FileType.FILE_TYPE_DRM_SR2_Room_RETAIL),
         BF.FileType.FromType(BF.FileType.FILE_TYPE_DRM_SR2_Object),
         new FileType()
     };
 }
コード例 #6
0
 public BigFileTypeGex3()
     : base()
 {
     Name            = "Gex3";
     Description     = "Gex 3: Deep Cover Gecko (PlayStation)";
     MasterIndexType = IndexType.Gex2;
     HashLookupTable = new FlatFileHashLookupTable("Gex3", Path.Combine(mDLLPath, "Hashes-Gex3.txt"));
     FileTypes       = new FileType[]
     {
         BF.FileType.FromType(BF.FileType.FILE_TYPE_SND_Akuji),
         BF.FileType.FromType(BF.FileType.FILE_TYPE_TIM_4),
         BF.FileType.FromType(BF.FileType.FILE_TYPE_TIM_8),
         BF.FileType.FromType(BF.FileType.FILE_TYPE_TIM_16),
         BF.FileType.FromType(BF.FileType.FILE_TYPE_TIM_24),
         new FileType()
     };
 }
コード例 #7
0
 public BigFileTypeAkuji()
     : base()
 {
     Name            = "Akuji";
     Description     = "Akuji: the Heartless (PlayStation)";
     MasterIndexType = IndexType.Gex2;
     HashLookupTable = new FlatFileHashLookupTable("Akuji", Path.Combine(mDLLPath, "Hashes-Akuji.txt"));
     FileTypes       = new FileType[]
     {
         BF.FileType.FromType(BF.FileType.FILE_TYPE_SND_Akuji),
         BF.FileType.FromType(BF.FileType.FILE_TYPE_TIM_4),
         BF.FileType.FromType(BF.FileType.FILE_TYPE_TIM_8),
         BF.FileType.FromType(BF.FileType.FILE_TYPE_TIM_16),
         BF.FileType.FromType(BF.FileType.FILE_TYPE_TIM_24),
         new FileType()
     };
 }
コード例 #8
0
 public BigFileTypeBloodOmen()
     : base()
 {
     Name            = "BloodOmen";
     Description     = "Blood Omen (PlayStation/PC)";
     MasterIndexType = IndexType.BloodOmen;
     HashLookupTable = new FlatFileHashLookupTable("BO1", Path.Combine(mDLLPath, "Hashes-BO1.txt"));
     FileTypes       = new FileType[]
     {
         BF.FileType.FromType(BF.FileType.FILE_TYPE_TIM_4),
         BF.FileType.FromType(BF.FileType.FILE_TYPE_TIM_8),
         BF.FileType.FromType(BF.FileType.FILE_TYPE_TIM_16),
         BF.FileType.FromType(BF.FileType.FILE_TYPE_TIM_24),
         BF.FileType.FromType(BF.FileType.FILE_TYPE_VAB_Headerless),
         BF.FileType.FromType(BF.FileType.FILE_TYPE_VAG_Headerless),
         new FileType()
     };
 }
コード例 #9
0
 public void SetType(BF.BigFileType newType)
 {
     mType      = newType;
     mFileTypes = mType.FileTypes;
     mType.LoadHashLookupTable(Path);
     mHashLookupTable = mType.HashLookupTable;
     if (mHashLookupTable != null)
     {
         try
         {
             mHashLookupTable.LoadHashTable();
         }
         catch (HashTableLoadException htlEx)
         {
             mDoHashLookups = false;
             //log to file if necessary
         }
     }
 }
 public BigFileTypeSoulReaver2AirForgeDemo()
     : base()
 {
     Name            = "SoulReaver2AirForgeDemo";
     Description     = "Soul Reaver 2 Air Forge Demo (PlayStation 2)";
     MasterIndexType = IndexType.SR2AirForgeDemo;
     HashLookupTable = new FlatFileHashLookupTable("SR2AirForge", Path.Combine(mDLLPath, "Hashes-SR2_Air_Forge.txt"));
     FileTypes       = new FileType[]
     {
         BF.FileType.FromType(BF.FileType.FILE_TYPE_RAW_SR2_PS2),
         BF.FileType.FromType(BF.FileType.FILE_TYPE_DRM_SR2_Room_DEMO_NTSC),
         BF.FileType.FromType(BF.FileType.FILE_TYPE_DRM_SR2_Room_DEMO_PAL),
         BF.FileType.FromType(BF.FileType.FILE_TYPE_DRM_SR2_Object),
         BF.FileType.FromType(BF.FileType.FILE_TYPE_STR_SR2_PS2),
         BF.FileType.FromType(BF.FileType.FILE_TYPE_RAWImage),
         BF.FileType.FromType(BF.FileType.FILE_TYPE_SNF),
         //BF.FileType.FromType(BF.FileType.FILE_TYPE_VRM),
         new FileType()
     };
 }
 public BigFileTypeSoulReaverPC()
     : base()
 {
     Name            = "SoulReaverPC";
     Description     = "Soul Reaver (PC)";
     MasterIndexType = IndexType.SR1PC;
     HashLookupTable = HashLookupTable = new FlatFileHashLookupTable("SR1", Path.Combine(mDLLPath, "Hashes-SR1.txt"));
     FileTypes       = new FileType[]
     {
         BF.FileType.FromType(BF.FileType.FILE_TYPE_DRM_SR1_Object),
         BF.FileType.FromType(BF.FileType.FILE_TYPE_DRM_SR1_Room),
         BF.FileType.FromType(BF.FileType.FILE_TYPE_CRM_SR1),
         BF.FileType.FromType(BF.FileType.FILE_TYPE_PMF),
         BF.FileType.FromType(BF.FileType.FILE_TYPE_PNF),
         BF.FileType.FromType(BF.FileType.FILE_TYPE_SMF),
         BF.FileType.FromType(BF.FileType.FILE_TYPE_SNF),
         BF.FileType.FromType(BF.FileType.FILE_TYPE_TIM_4),
         BF.FileType.FromType(BF.FileType.FILE_TYPE_TIM_8),
         BF.FileType.FromType(BF.FileType.FILE_TYPE_TIM_16),
         BF.FileType.FromType(BF.FileType.FILE_TYPE_TIM_24),
         new FileType()
     };
 }
 public BigFileTypeSoulReaverPlayStation()
     : base()
 {
     Name            = "SoulReaverPlayStation";
     Description     = "Soul Reaver (PlayStation - NTSC - Retail and Beta Versions)";
     MasterIndexType = IndexType.SR1PS1MainIndex;
     HashLookupTable = new FlatFileHashLookupTable("SR1", Path.Combine(mDLLPath, "Hashes-SR1.txt"));
     FileTypes       = new FileType[]
     {
         BF.FileType.FromType(BF.FileType.FILE_TYPE_DRM_SR1_Object),
         BF.FileType.FromType(BF.FileType.FILE_TYPE_DRM_SR1_Room),
         BF.FileType.FromType(BF.FileType.FILE_TYPE_CRM_SR1),
         BF.FileType.FromType(BF.FileType.FILE_TYPE_PMF),
         BF.FileType.FromType(BF.FileType.FILE_TYPE_PNF),
         BF.FileType.FromType(BF.FileType.FILE_TYPE_SMF),
         BF.FileType.FromType(BF.FileType.FILE_TYPE_SNF),
         BF.FileType.FromType(BF.FileType.FILE_TYPE_TIM_4),
         BF.FileType.FromType(BF.FileType.FILE_TYPE_TIM_8),
         BF.FileType.FromType(BF.FileType.FILE_TYPE_TIM_16),
         BF.FileType.FromType(BF.FileType.FILE_TYPE_TIM_24),
         new FileType()
     };
 }
コード例 #13
0
 public BigFileTypeSoulReaverProto1Demo()
     : base()
 {
     Name            = "SoulReaverProto1Demo";
     Description     = "Soul Reaver Proto1/Lighthouse Demo (PlayStation)";
     MasterIndexType = IndexType.Gex2;
     HashLookupTable = new FlatFileHashLookupTable("SR1Proto1", Path.Combine(mDLLPath, "Hashes-SR1_Proto1.txt"));
     FileTypes       = new FileType[]
     {
         BF.FileType.FromType(BF.FileType.FILE_TYPE_SND_Akuji),
         BF.FileType.FromType(BF.FileType.FILE_TYPE_DRM_SR1_Object),
         BF.FileType.FromType(BF.FileType.FILE_TYPE_DRM_SR1_Room),
         BF.FileType.FromType(BF.FileType.FILE_TYPE_CRM_SR1),
         BF.FileType.FromType(BF.FileType.FILE_TYPE_PMF),
         BF.FileType.FromType(BF.FileType.FILE_TYPE_PNF),
         BF.FileType.FromType(BF.FileType.FILE_TYPE_SMF),
         BF.FileType.FromType(BF.FileType.FILE_TYPE_SNF),
         BF.FileType.FromType(BF.FileType.FILE_TYPE_TIM_4),
         BF.FileType.FromType(BF.FileType.FILE_TYPE_TIM_8),
         BF.FileType.FromType(BF.FileType.FILE_TYPE_TIM_16),
         BF.FileType.FromType(BF.FileType.FILE_TYPE_TIM_24),
         new FileType()
     };
 }