Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
MishaProductions committed May 31, 2024
1 parent a221e4b commit b826632
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 69 deletions.
4 changes: 2 additions & 2 deletions Rectify11.Phase2/Helper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ public static bool SafeFileCopy(string src, string dest)
return false;
}
}
public static bool InstallWow64Dlll(string file)
public static bool InstallWow64Dll(string file)
{
// whatever, its only for a few cases
try
Expand Down Expand Up @@ -107,7 +107,7 @@ public static void ImportReg(string path)
}
catch (Exception ex)
{
Console.WriteLine(Path.GetFileName(path) + " failed.", ex);
Console.WriteLine(Path.GetFileName(path) + " failed." + ex.ToString());
}
}
public static string FixString(string path, bool x86)
Expand Down
18 changes: 9 additions & 9 deletions Rectify11.Phase2/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -45,15 +45,15 @@ private static void Main(string[] args)
}

// copy necessary files
InstallSys32Dll("iconres.dll");
ImportReg(Path.Combine(Variables.r11Files, "icons.reg"));
InstallSys32Dll("duires.dll");
InstallSys32Dll("iconres.dll");
InstallSys32Dll("ImmersiveFontHandler.dll");
InstallSys32Dll("twinuifonts.dll");
InstallWow64Dlll("iconres.dll");
InstallWow64Dlll("duires.dll");
InstallWow64Dlll("ImmersiveFontHandler.dll");
InstallWow64Dlll("twinuifonts.dll");
InstallWow64Dll("iconres.dll");
InstallWow64Dll("duires.dll");
InstallWow64Dll("ImmersiveFontHandler.dll");
InstallWow64Dll("twinuifonts.dll");
InstallFonts();

r11Reg?.Close();
Expand Down Expand Up @@ -255,9 +255,9 @@ private static void Main(string[] args)
}
for (int k = 0; k < uninstallFiles.Length; k++)
{
if (uninstallFiles[k].Contains("mmc.exe"))
if (uninstallFiles[k].Contains("mmc.exe"))
{
foreach (var process in Process.GetProcessesByName("mmc"))
foreach (var process in Process.GetProcessesByName("mmc"))
{
process.Kill();
}
Expand Down Expand Up @@ -326,11 +326,11 @@ private static void Main(string[] args)
}
}

SafeFileDeletion(Path.Combine(Variables.sys32Folder,"iconres.dll"));
SafeFileDeletion(Path.Combine(Variables.sys32Folder, "iconres.dll"));
SafeFileDeletion(Path.Combine(Variables.sys32Folder, "duires.dll"));
SafeFileDeletion(Path.Combine(Variables.sys32Folder, "ImmersiveFontHandler.dll"));
SafeFileDeletion(Path.Combine(Variables.sys32Folder, "twinuifonts.dll"));
SafeFileDeletion(Path.Combine(Variables.sysWOWFolder,"iconres.dll"));
SafeFileDeletion(Path.Combine(Variables.sysWOWFolder, "iconres.dll"));
SafeFileDeletion(Path.Combine(Variables.sysWOWFolder, "duires.dll"));
SafeFileDeletion(Path.Combine(Variables.sysWOWFolder, "ImmersiveFontHandler.dll"));
SafeFileDeletion(Path.Combine(Variables.sysWOWFolder, "twinuifonts.dll"));
Expand Down
36 changes: 0 additions & 36 deletions Rectify11Installer/Controls/TabControlWithoutHeader.Designer.cs

This file was deleted.

21 changes: 0 additions & 21 deletions Rectify11Installer/Controls/TabControlWithoutHeader.cs

This file was deleted.

2 changes: 1 addition & 1 deletion RectifyControlPanel2

0 comments on commit b826632

Please sign in to comment.