Skip to content

Commit

Permalink
Fix old leftovers that break build
Browse files Browse the repository at this point in the history
Fix old leftovers that break build
  • Loading branch information
Lixkote committed Jan 6, 2024
1 parent 825ed2f commit 4bbd405
Show file tree
Hide file tree
Showing 2 changed files with 642 additions and 8 deletions.
16 changes: 8 additions & 8 deletions Rectify11Installer/Core/Backend/Common.cs
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ public static bool WriteFiles(bool icons, bool themes)
{
try
{
if (!Helper.SafeFileOperation(Path.Combine(Variables.r11Folder, "RectifyStart.exe"), Properties.Resources.RectifyStart, Helper.OperationType.Write))
return false;
// if (!Helper.SafeFileOperation(Path.Combine(Variables.r11Folder, "RectifyStart.exe"), Properties.Resources.RectifyStart, Helper.OperationType.Write))
// return false;
if (icons)
{
if (!Helper.SafeFileOperation(Path.Combine(Variables.r11Folder, "NSudoL.exe"), Properties.Resources.NSudoL, Helper.OperationType.Write))
Expand All @@ -31,8 +31,8 @@ public static bool WriteFiles(bool icons, bool themes)
}
if (themes)
{
if (!Helper.SafeFileOperation(Path.Combine(Variables.r11Folder, "themes.7z"), Properties.Resources.themes, Helper.OperationType.Write))
return false;
//if (!Helper.SafeFileOperation(Path.Combine(Variables.r11Folder, "themes.7z"), Properties.Resources.themes, Helper.OperationType.Write))
// return false;

var s = NativeMethods.IsArm64() ? Properties.Resources.secureux_arm64 : Properties.Resources.secureux_x64;
var dll = NativeMethods.IsArm64() ? Properties.Resources.ThemeDll_arm64 : Properties.Resources.ThemeDll_x64;
Expand All @@ -46,10 +46,10 @@ public static bool WriteFiles(bool icons, bool themes)
{
if (!Helper.SafeFileOperation(Path.Combine(Variables.r11Folder, "7za.exe"), Properties.Resources._7za, Helper.OperationType.Write))
return false;
if (!Helper.SafeFileOperation(Path.Combine(Variables.r11Folder, "files.7z"), Properties.Resources.files7z, Helper.OperationType.Write))
return false;
if (!Helper.SafeFileOperation(Path.Combine(Variables.r11Folder, "extras.7z"), Properties.Resources.extras, Helper.OperationType.Write))
return false;
// if (!Helper.SafeFileOperation(Path.Combine(Variables.r11Folder, "files.7z"), Properties.Resources.files7z, Helper.OperationType.Write))
// return false;
// if (!Helper.SafeFileOperation(Path.Combine(Variables.r11Folder, "extras.7z"), Properties.Resources.extras, Helper.OperationType.Write))
// return false;
if (!Helper.SafeFileOperation(Path.Combine(Variables.r11Folder, "ResourceHacker.exe"), Properties.Resources.ResourceHacker, Helper.OperationType.Write))
return false;
}
Expand Down
Loading

0 comments on commit 4bbd405

Please sign in to comment.