Example #1
0
        private static KnownFile[] InitKnownFiles()
        {
            return(new KnownFile[] {
                new KnownFile(new SHA1(0x92de0d29c0ad4a9eul, 0xa935870674976924ul, 0xd5df756du), "data/text/dat_us/t_magic.tbl", "senpatcher_bkp/data_text_dat_us_t_magic.tbl"),
                new KnownFile(new SHA1(0x5b2fee612159bcb9ul, 0x3b2c6831f94f7b1ful, 0x4dd6231cu), "data/scripts/book/dat_us/book04.dat"),

                // v1.4.1
                new KnownFile(new SHA1(0xfb45b576c39bcd2eul, 0x2806c2344c4f131eul, 0xc9611a1cu), "bin/Win32/ed8_2_PC_US.exe", important: false, writeToBackup: false),         // old xdelta patch for battle skip removal
                new KnownFile(new SHA1(0x5c5f2469efd7f692ul, 0x97b3694365a277abul, 0x834617f9u), "bin/Win32/ed8_2_PC_JP.exe", important: false, writeToBackup: false),         // old xdelta patch for battle skip removal
                new KnownFile(new SHA1(0xd5c333b4cd517d43ul, 0xe3868e159fbec37dul, 0xba4122d6u), new List <KnownFileAcquisitionMethod>()
                {
                    new KnownFileAcquisitionFromGamefile("bin/Win32/ed8_2_PC_US.exe"),
                    new KnownFileAcquisitionFromGamefile("senpatcher_bkp/ed8_2_PC_US.exe.bin"),
                    new KnownFileAcquisitionFromGamefile("bin/Win32/ed8_2_PC_US.exe.senpatcher.bkp"),
                    new KnownFileAcquisitionFromBpsPatch(new SHA1(0xfb45b576c39bcd2eul, 0x2806c2344c4f131eul, 0xc9611a1cu), new HyoutaUtils.Streams.DuplicatableByteArrayStream(new byte[] { 0x42, 0x50, 0x53, 0x31, 0x00, 0x3b, 0x04, 0x82, 0x00, 0x3b, 0x04, 0x82, 0x80, 0x28, 0x03, 0xf8, 0x81, 0x74, 0x78, 0x5e, 0x88, 0x81, 0x74, 0x04, 0xf5, 0x81, 0x74, 0x68, 0x23, 0x8d, 0x95, 0x0f, 0x84, 0x6a, 0x01, 0x00, 0x00, 0x3c, 0x6f, 0x02, 0x8a, 0x7c, 0xb0, 0xc9, 0x0e, 0xf1, 0x55, 0x2a, 0xf4, 0x95, 0x41, 0xbc, 0x9b }))
                }, important: false),
                new KnownFile(new SHA1(0xb8158fb59e43c02eul, 0x904f813150d84133ul, 0x6d1a13e5u), new List <KnownFileAcquisitionMethod>()
                {
                    new KnownFileAcquisitionFromGamefile("bin/Win32/ed8_2_PC_JP.exe"),
                    new KnownFileAcquisitionFromGamefile("senpatcher_bkp/ed8_2_PC_JP.exe.bin"),
                    new KnownFileAcquisitionFromGamefile("bin/Win32/ed8_2_PC_JP.exe.senpatcher.bkp"),
                    new KnownFileAcquisitionFromBpsPatch(new SHA1(0x5c5f2469efd7f692ul, 0x97b3694365a277abul, 0x834617f9u), new HyoutaUtils.Streams.DuplicatableByteArrayStream(new byte[] { 0x42, 0x50, 0x53, 0x31, 0x00, 0x33, 0x03, 0x82, 0x00, 0x33, 0x03, 0x82, 0x80, 0x68, 0x77, 0xf7, 0x81, 0x74, 0x38, 0x5d, 0x88, 0x81, 0x74, 0x04, 0xf5, 0x81, 0x74, 0x28, 0x1f, 0x8d, 0x95, 0x0f, 0x84, 0x6a, 0x01, 0x00, 0x00, 0x7c, 0x60, 0x7e, 0x89, 0xf7, 0x4d, 0x06, 0x64, 0x00, 0x2c, 0xa1, 0x40, 0x07, 0xc9, 0xca, 0x8d }))
                }, important: false),

                // v1.4.2
                new KnownFile(new SHA1(0xef0b17046732ecb9ul, 0x0a830a3255848e05ul, 0x8bbdce15u), "bin/Win32/ed8_2_PC_US.exe", important: false, writeToBackup: false),         // old xdelta patch for battle skip removal
                new KnownFile(new SHA1(0x984aae6849d0f7e4ul, 0x484107481d0a3e1eul, 0x374bb7ccu), "bin/Win32/ed8_2_PC_JP.exe", important: false, writeToBackup: false),         // old xdelta patch for battle skip removal
                new KnownFile(new SHA1(0xb08ece4ee38e6e3aul, 0x99e58eb11cffb45eul, 0x49704f86u), new List <KnownFileAcquisitionMethod>()
                {
                    new KnownFileAcquisitionFromGamefile("bin/Win32/ed8_2_PC_US.exe"),
                    new KnownFileAcquisitionFromGamefile("senpatcher_bkp/ed8_2_PC_US.exe.bin"),
                    new KnownFileAcquisitionFromGamefile("bin/Win32/ed8_2_PC_US.exe.senpatcher.bkp"),
                    new KnownFileAcquisitionFromBpsPatch(new SHA1(0xd5c333b4cd517d43ul, 0xe3868e159fbec37dul, 0xba4122d6u), HyoutaUtils.Bps.BpsPatcher.ApplyPatchToStream(DecompressHelper.DecompressFromBuffer(Properties.Resources.ed82j142), DecompressHelper.DecompressFromBuffer(Properties.Resources.ed82u142j)).CopyToByteArrayStreamAndDispose(), writeToBackup: false),
                    new KnownFileAcquisitionFromBpsPatch(new SHA1(0xef0b17046732ecb9ul, 0x0a830a3255848e05ul, 0x8bbdce15u), new HyoutaUtils.Streams.DuplicatableByteArrayStream(new byte[] { 0x42, 0x50, 0x53, 0x31, 0x00, 0x77, 0x06, 0x82, 0x00, 0x77, 0x06, 0x82, 0x80, 0x28, 0x03, 0xf8, 0x81, 0x74, 0x78, 0x5e, 0x88, 0x81, 0x74, 0x04, 0xf5, 0x81, 0x74, 0x68, 0x23, 0x8d, 0x95, 0x0f, 0x84, 0x6a, 0x01, 0x00, 0x00, 0x3c, 0x5f, 0x0c, 0x8a, 0x18, 0xe9, 0x1b, 0xf2, 0x59, 0xf8, 0xcd, 0x0a, 0xa7, 0x5d, 0x0d, 0xfb }))
                }),
                new KnownFile(new SHA1(0x7d1db7e0bb91ab77ul, 0xa3fd1eba53b0ed25ul, 0x806186c1u), new List <KnownFileAcquisitionMethod>()
                {
                    new KnownFileAcquisitionFromGamefile("bin/Win32/ed8_2_PC_JP.exe"),
                    new KnownFileAcquisitionFromGamefile("senpatcher_bkp/ed8_2_PC_JP.exe.bin"),
                    new KnownFileAcquisitionFromGamefile("bin/Win32/ed8_2_PC_JP.exe.senpatcher.bkp"),
                    new KnownFileAcquisitionFromBpsPatch(new SHA1(0xb8158fb59e43c02eul, 0x904f813150d84133ul, 0x6d1a13e5u), DecompressHelper.DecompressFromBuffer(Properties.Resources.ed82j142).CopyToByteArrayStreamAndDispose(), writeToBackup: false),
                    new KnownFileAcquisitionFromBpsPatch(new SHA1(0x984aae6849d0f7e4ul, 0x484107481d0a3e1eul, 0x374bb7ccu), new HyoutaUtils.Streams.DuplicatableByteArrayStream(new byte[] { 0x42, 0x50, 0x53, 0x31, 0x00, 0x6f, 0x05, 0x82, 0x00, 0x6f, 0x05, 0x82, 0x80, 0x68, 0x77, 0xf7, 0x81, 0x74, 0x38, 0x5d, 0x88, 0x81, 0x74, 0x04, 0xf5, 0x81, 0x74, 0x28, 0x1f, 0x8d, 0x95, 0x0f, 0x84, 0x6a, 0x01, 0x00, 0x00, 0x7c, 0x50, 0x08, 0x8a, 0x57, 0x73, 0x17, 0xd7, 0x27, 0x4f, 0x1a, 0xa2, 0xdd, 0x9d, 0xd2, 0xfd }))
                }),

                new KnownFile(new SHA1(0x81024410cc1fd1b4ul, 0x62c600e0378714bdul, 0x7704b202u), "Sen2Launcher.exe"),
            });
        }
Example #2
0
 private static KnownFile[] InitKnownFiles()
 {
     return(new KnownFile[] {
         new KnownFile(new SHA1(0x1d7d909f29ac458eul, 0xf6ffc94cbd0a0a72ul, 0x49c25fdeu), DecompressHelper.DecompressFromBuffer(Properties.Resources.ed8m2150).CopyToByteArrayStreamAndDispose(), writeToBackup: false),
         new KnownFile(new SHA1(0xe336f59af7a03b6eul, 0xf6ec2d9938371885ul, 0x7b26ecf3u), DecompressHelper.DecompressFromBuffer(Properties.Resources.ed8m4097).CopyToByteArrayStreamAndDispose(), writeToBackup: false),
         new KnownFile(new SHA1(0x0056ff921028d42ful, 0x226e25555dd48336ul, 0x19a8cbc8u), DecompressHelper.DecompressFromBuffer(Properties.Resources.ed8m4217).CopyToByteArrayStreamAndDispose(), writeToBackup: false),
         new KnownFile(new SHA1(0x0037f27d49910859ul, 0x38a613aae6000493ul, 0x68768874u), DecompressHelper.DecompressFromBuffer(Properties.Resources.pc8v10286_15).CopyToByteArrayStreamAndDispose(), writeToBackup: false),
         new KnownFile(new SHA1(0xe9bd9a1d50cf6170ul, 0x728942e9fead6f2bul, 0xa635fcc6u), DecompressHelper.DecompressFromBuffer(Properties.Resources.pc8v02551_4).CopyToByteArrayStreamAndDispose(), writeToBackup: false),
         new KnownFile(new SHA1(0x73fd289006017eabul, 0x8816636d998d21aaul, 0x8fb38d68u), "data/scripts/scena/dat_us/a0006.dat", "senpatcher_bkp/data_scripts_scena_dat_us_a0006.dat"),
         new KnownFile(new SHA1(0x9a75c8439ca12500ul, 0x437af585d0ae9474ul, 0x4b620dfdu), "data/scripts/scena/dat_us/c0100.dat", "senpatcher_bkp/data_scripts_scena_dat_us_c0100.dat"),
         new KnownFile(new SHA1(0xa740904f6ad37411ul, 0x825565981daa5f59ul, 0x15b55b69u), "data/scripts/scena/dat_us/c0110.dat", "senpatcher_bkp/data_scripts_scena_dat_us_c0110.dat"),
         new KnownFile(new SHA1(0xc377fcdc74a195f7ul, 0x9dba543e80a70d2eul, 0xb7fdf12au), "data/scripts/scena/dat_us/m0040.dat"),
         new KnownFile(new SHA1(0x65044a35a4c042faul, 0xbc4a5a66fd23b0cdul, 0x8163dfdbu), "data/scripts/scena/dat_us/r0600.dat", "senpatcher_bkp/data_scripts_scena_dat_us_r0600.dat"),
         new KnownFile(new SHA1(0x531ae02b784b6530ul, 0xf4dc08676a793c89ul, 0xf9ebae68u), "data/scripts/scena/dat_us/r0601.dat"),
         new KnownFile(new SHA1(0x48d8e5ebfacb29feul, 0xd7c5c4e75c84e108ul, 0x277cb5feu), "data/scripts/scena/dat_us/r0800.dat", "senpatcher_bkp/data_scripts_scena_dat_us_r0800.dat"),
         new KnownFile(new SHA1(0x83fc174bcce22201ul, 0xfe2053f855e8879bul, 0x3091e649u), "data/scripts/scena/dat_us/t0000.dat", "senpatcher_bkp/data_scripts_scena_dat_us_t0000.dat"),
         new KnownFile(new SHA1(0x8bf43f6d4c7f0de5ul, 0xba13e4c14301da05ul, 0xbd1c919au), "data/scripts/scena/dat_us/t0000c.dat"),
         new KnownFile(new SHA1(0x8a76ff88baf96b5eul, 0x72e675d0d5d3b75aul, 0x72cc3989u), "data/scripts/scena/dat_us/t0010.dat", "senpatcher_bkp/data_scripts_scena_dat_us_t0010.dat"),
         new KnownFile(new SHA1(0x66a22b79517c7214ul, 0xb00b2a7a4ac898bcul, 0x5f231fd8u), "data/scripts/scena/dat_us/t0031.dat", "senpatcher_bkp/data_scripts_scena_dat_us_t0031.dat"),
         new KnownFile(new SHA1(0xe7854ac057166d50ul, 0xd94c340ec39403d2ul, 0x6173ff9fu), "data/scripts/scena/dat_us/t0032.dat", "senpatcher_bkp/data_scripts_scena_dat_us_t0032.dat"),
         new KnownFile(new SHA1(0xd363fc2114ec8421ul, 0xc24b47c29a4a2badul, 0xed31cfb5u), "data/scripts/scena/dat_us/t0050.dat", "senpatcher_bkp/data_scripts_scena_dat_us_t0050.dat"),
         new KnownFile(new SHA1(0xd5805f2f25de668aul, 0x4ececc8f6cad0aaaul, 0xe64a3cf8u), "data/scripts/scena/dat_us/t0080.dat", "senpatcher_bkp/data_scripts_scena_dat_us_t0080.dat"),
         new KnownFile(new SHA1(0x84d3de50b7318f20ul, 0xb4fe48836404d134ul, 0xa124be52u), "data/scripts/scena/dat_us/t1000.dat", "senpatcher_bkp/data_scripts_scena_dat_us_t1000.dat"),
         new KnownFile(new SHA1(0x44c4abb3f8e01ddeul, 0x0e36ca1d11cd433ful, 0x37c10788u), "data/scripts/scena/dat_us/t1010.dat", "senpatcher_bkp/data_scripts_scena_dat_us_t1010.dat"),
         new KnownFile(new SHA1(0x4f2a0d4b4c1602bbul, 0xd9aec8dc0785f334ul, 0xc6c285f9u), "data/scripts/scena/dat_us/t1500.dat", "senpatcher_bkp/data_scripts_scena_dat_us_t1500.dat"),
         new KnownFile(new SHA1(0xd18f9880c045b969ul, 0xafd8c6a8836ee6e8ul, 0x6810aa4eu), "data/scripts/scena/dat_us/t3500.dat", "senpatcher_bkp/data_scripts_scena_dat_us_t3500.dat"),
         new KnownFile(new SHA1(0xaf8f356c80083c02ul, 0x8824fd41332b003ful, 0xec834cb1u), "data/scripts/talk/dat_us/tk_beryl.dat", "senpatcher_bkp/data_scripts_talk_dat_us_tk_beryl.dat"),
         new KnownFile(new SHA1(0xdc5deaa30247aafaul, 0xf2a369da2268d408ul, 0x2ba310c5u), "data/scripts/talk/dat_us/tk_edel.dat", "senpatcher_bkp/data_scripts_talk_dat_us_tk_edel.dat"),
         new KnownFile(new SHA1(0x491c365d592bb900ul, 0x29e7543d893d47bdul, 0x5e66139du), "data/scripts/talk/dat_us/tk_heinrich.dat", "senpatcher_bkp/data_scripts_talk_dat_us_tk_heinrich.dat"),
         new KnownFile(new SHA1(0xf423fb1dfddde29dul, 0x3e26a40ceed87982ul, 0xb899cdcau), "data/scripts/talk/dat_us/tk_laura.dat", "senpatcher_bkp/data_scripts_talk_dat_us_tk_laura.dat"),
         new KnownFile(new SHA1(0xb838141d25f707a7ul, 0xc95191db2f8c324aul, 0x3e0a34c0u), "data/scripts/talk/dat_us/tk_vandyck.dat", "senpatcher_bkp/data_scripts_talk_dat_us_tk_vandyck.dat"),
         new KnownFile(new SHA1(0x684cc74b0837ff14ul, 0x08124f8b8a05cfd9ul, 0xc9a09195u), "data/se/wav/ed8" + '\uff4d' + "2123.wav", "data/se/wav/ed8m2123.wav", "senpatcher_bkp/data_se_wav_ed8m2123.wav"),
         new KnownFile(new SHA1(0x90a5c55ed954d771ul, 0x11563b9f3bb62ce7ul, 0xc534135au), "data/text/dat/t_voice.tbl"),
         new KnownFile(new SHA1(0xd5f7bf4c4c575efdul, 0x5699e8bbd4040b81ul, 0x276a7284u), "data/text/dat_us/t_magic.tbl", "senpatcher_bkp/data_text_dat_us_t_magic.tbl"),
         new KnownFile(new SHA1(0xf4b9ff78474452aaul, 0xc44f4b0c07c5a3ccul, 0x1ce27359u), "data/text/dat_us/t_vctiming.tbl", "data/text/dat/t_vctiming.tbl"),
         new KnownFile(new SHA1(0xdc8fa92820abc1b4ul, 0x6a646b4d75ba5d23ul, 0x9bd22ee9u), "data/text/dat_us/t_voice.tbl"),
         new KnownFile(new SHA1(0x6d43ad75d01d9acdul, 0x887826db59961c3eul, 0x925ccc02u), "data/voice/wav/pc8v02551.wav"),
         new KnownFile(new SHA1(0xf94e4188145f004cul, 0x86ae6fa0b6ff8a1bul, 0x818b4562u), DecompressHelper.DecompressFromBuffer(Properties.Resources.vctiming_jp_4).CopyToByteArrayStreamAndDispose(), writeToBackup: false),
         new KnownFile(new SHA1(0x60e82f9eb05d4b5dul, 0x15fbff5e3b341b0cul, 0xabfcae9du), new List <KnownFileAcquisitionMethod>()
         {
             new KnownFileAcquisitionFromBpsPatch(new SHA1(0xf94e4188145f004cul, 0x86ae6fa0b6ff8a1bul, 0x818b4562u), DecompressHelper.DecompressFromBuffer(Properties.Resources.vctiming_jp_3).CopyToByteArrayStreamAndDispose(), writeToBackup: false)
         }),
         new KnownFile(new SHA1(0x4530f8f99feffdd6ul, 0xbdb3b6e43ab769d0ul, 0xa0e9d5d8u), new List <KnownFileAcquisitionMethod>()
         {
             new KnownFileAcquisitionFromBpsPatch(new SHA1(0xf4b9ff78474452aaul, 0xc44f4b0c07c5a3ccul, 0x1ce27359u), DecompressHelper.DecompressFromBuffer(Properties.Resources.vctiming_us_3).CopyToByteArrayStreamAndDispose(), writeToBackup: false)
         }),
         new KnownFile(new SHA1(0x47b8e01924115c99ul, 0x14f4a5fa65873309ul, 0xc5825a41u), new List <KnownFileAcquisitionMethod>()
         {
             new KnownFileAcquisitionFromBpsPatch(new SHA1(0x4530f8f99feffdd6ul, 0xbdb3b6e43ab769d0ul, 0xa0e9d5d8u), new HyoutaUtils.Streams.DuplicatableByteArrayStream(Properties.Resources.vctiming_us_4), writeToBackup: false)
         }),
         new KnownFile(new SHA1(0x591122d8707ebee4ul, 0xf3afa135c32c2113ul, 0x1e1a7bafu), "ed8.exe", important: false, writeToBackup: false),         // old xdelta patch for battle skip removal
         new KnownFile(new SHA1(0x46feedf2f507e1dcul, 0x467c8ba002b0394bul, 0xb8fd464eu), "ed8jp.exe", important: false, writeToBackup: false),       // old xdelta patch for battle skip removal
         new KnownFile(new SHA1(0x373c1d1b30001af3ul, 0x60042365ed257e07ul, 0x0bf40accu), new List <KnownFileAcquisitionMethod>()
         {
             new KnownFileAcquisitionFromGamefile("ed8.exe"),
             new KnownFileAcquisitionFromGamefile("senpatcher_bkp/ed8.exe.bin"),
             new KnownFileAcquisitionFromGamefile("ed8.exe.senpatcher.bkp"),
             new KnownFileAcquisitionFromBpsPatch(new SHA1(0x591122d8707ebee4ul, 0xf3afa135c32c2113ul, 0x1e1a7bafu), new HyoutaUtils.Streams.DuplicatableByteArrayStream(new byte[] { 0x42, 0x50, 0x53, 0x31, 0x00, 0x67, 0x1d, 0x83, 0x00, 0x67, 0x1d, 0x83, 0x80, 0x00, 0x02, 0x56, 0x80, 0x81, 0x74, 0x30, 0x2e, 0x99, 0x95, 0x0f, 0x84, 0x80, 0x01, 0x00, 0x00, 0x28, 0x6c, 0x08, 0x8e, 0x03, 0xb0, 0x1c, 0xe2, 0x4d, 0x26, 0x96, 0x4a, 0x0b, 0xad, 0x99, 0x0b }))
         }),
         new KnownFile(new SHA1(0x1d56abf5aa02eeaeul, 0x334797c287ef2109ul, 0xc7a103fau), new List <KnownFileAcquisitionMethod>()
         {
             new KnownFileAcquisitionFromGamefile("ed8jp.exe"),
             new KnownFileAcquisitionFromGamefile("senpatcher_bkp/ed8jp.exe.bin"),
             new KnownFileAcquisitionFromGamefile("ed8jp.exe.senpatcher.bkp"),
             new KnownFileAcquisitionFromBpsPatch(new SHA1(0x46feedf2f507e1dcul, 0x467c8ba002b0394bul, 0xb8fd464eu), new HyoutaUtils.Streams.DuplicatableByteArrayStream(new byte[] { 0x42, 0x50, 0x53, 0x31, 0x00, 0x1f, 0x1d, 0x83, 0x00, 0x1f, 0x1d, 0x83, 0x80, 0x40, 0x3f, 0x54, 0x80, 0x81, 0x74, 0x70, 0x2f, 0x99, 0x95, 0x0f, 0x84, 0x80, 0x01, 0x00, 0x00, 0x28, 0x0d, 0x08, 0x8e, 0x64, 0x17, 0x54, 0x13, 0x23, 0xe2, 0xa3, 0x29, 0x10, 0x42, 0x77, 0x67 }))
         }),
         new KnownFile(new SHA1(0x8dde2b39f128179aul, 0x0beb3301cfd56a98ul, 0xc0f98a55u), "Sen1Launcher.exe"),
     });
 }