Beispiel #1
0
		public Test_FilePatcher()
		{
			string DocumentsPath = Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments);

			string hce_install_directory = Registry.GetValue("HKEY_LOCAL_MACHINE\\Software\\Microsoft\\Microsoft Games\\Halo CE", "EXE Path", "") as string;
			string hce_output_directory = Path.Combine(DocumentsPath, "OpenSauceUnitTest\\Halo1_Installer\\FilePatcher\\HCE");
			if (hce_install_directory == null || hce_install_directory.Length == 0)
				throw new Exception("HCE Install path registry entry is missing");

			PatchSet hce_patch_set = new PatchSet(hce_install_directory, hce_output_directory);
			hce_patch_set.PatchDefinitions.Add(new PatchDefinition("Halo1_HCE_Dedi", "haloceded.exe"));

			string hek_install_directory = Registry.GetValue("HKEY_LOCAL_MACHINE\\Software\\Microsoft\\Microsoft Games\\Halo HEK", "EXE Path", "") as string;
			string hek_output_directory = Path.Combine(DocumentsPath, "OpenSauceUnitTest\\Halo1_Installer\\FilePatcher\\HEK");
			if (hek_install_directory == null || hek_install_directory.Length == 0)
				throw new Exception("HEK Install path registry entry is missing");

			PatchSet hek_patch_set = new PatchSet(hek_install_directory, hek_output_directory);
			hek_patch_set.PatchDefinitions.Add(new PatchDefinition("Halo1_HEK_Guerilla", "guerilla.exe"));
			hek_patch_set.PatchDefinitions.Add(new PatchDefinition("Halo1_HEK_Sapien", "sapien.exe"));
			hek_patch_set.PatchDefinitions.Add(new PatchDefinition("Halo1_HEK_Tool", "tool.exe"));

			PatchSets.Add(hce_patch_set);
			PatchSets.Add(hek_patch_set);
		}
Beispiel #2
0
        public Test_FilePatcher()
        {
            string DocumentsPath = Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments);

            string hce_install_directory = Registry.GetValue("HKEY_LOCAL_MACHINE\\Software\\Microsoft\\Microsoft Games\\Halo CE", "EXE Path", "") as string;
            string hce_output_directory  = Path.Combine(DocumentsPath, "OpenSauceUnitTest\\Halo1_Installer\\FilePatcher\\HCE");

            if (hce_install_directory == null || hce_install_directory.Length == 0)
            {
                throw new Exception("HCE Install path registry entry is missing");
            }

            PatchSet hce_patch_set = new PatchSet(hce_install_directory, hce_output_directory);

            hce_patch_set.PatchDefinitions.Add(new PatchDefinition("Halo1_HCE_Dedi", "haloceded.exe"));

            string hek_install_directory = Registry.GetValue("HKEY_LOCAL_MACHINE\\Software\\Microsoft\\Microsoft Games\\Halo HEK", "EXE Path", "") as string;
            string hek_output_directory  = Path.Combine(DocumentsPath, "OpenSauceUnitTest\\Halo1_Installer\\FilePatcher\\HEK");

            if (hek_install_directory == null || hek_install_directory.Length == 0)
            {
                throw new Exception("HEK Install path registry entry is missing");
            }

            PatchSet hek_patch_set = new PatchSet(hek_install_directory, hek_output_directory);

            hek_patch_set.PatchDefinitions.Add(new PatchDefinition("Halo1_HEK_Guerilla", "guerilla.exe"));
            hek_patch_set.PatchDefinitions.Add(new PatchDefinition("Halo1_HEK_Sapien", "sapien.exe"));
            hek_patch_set.PatchDefinitions.Add(new PatchDefinition("Halo1_HEK_Tool", "tool.exe"));

            PatchSets.Add(hce_patch_set);
            PatchSets.Add(hek_patch_set);
        }