Skip to content

Commit

Permalink
Fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
MishaProductions committed Mar 22, 2024
1 parent c4ed752 commit 6b51fa0
Show file tree
Hide file tree
Showing 6 changed files with 52 additions and 26 deletions.
4 changes: 2 additions & 2 deletions Rectify11Installer.sln
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@ Global
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{F1F7B13F-9EF7-4B77-9500-B062CC9DB17D}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{F1F7B13F-9EF7-4B77-9500-B062CC9DB17D}.Debug|Any CPU.Build.0 = Debug|Any CPU
{F1F7B13F-9EF7-4B77-9500-B062CC9DB17D}.Debug|Mixed Platforms.ActiveCfg = Debug|Any CPU
{F1F7B13F-9EF7-4B77-9500-B062CC9DB17D}.Debug|Mixed Platforms.Build.0 = Debug|Any CPU
{F1F7B13F-9EF7-4B77-9500-B062CC9DB17D}.Debug|Mixed Platforms.ActiveCfg = Debug|x64
{F1F7B13F-9EF7-4B77-9500-B062CC9DB17D}.Debug|Mixed Platforms.Build.0 = Debug|x64
{F1F7B13F-9EF7-4B77-9500-B062CC9DB17D}.Debug|Win32.ActiveCfg = Debug|Any CPU
{F1F7B13F-9EF7-4B77-9500-B062CC9DB17D}.Debug|x64.ActiveCfg = Debug|Any CPU
{F1F7B13F-9EF7-4B77-9500-B062CC9DB17D}.Debug|x64.Build.0 = Debug|Any CPU
Expand Down
6 changes: 3 additions & 3 deletions Rectify11Installer/Core/Backend/Themes.cs
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ public static bool Uninstall()

UninstallThemeWallpapers();

int hr = RectifyThemeUtil.Utility.UninstallThemeTool();
nint hr = RectifyThemeUtil.Utility.UninstallThemeTool();
if (hr != 0)
{
Logger.WriteLine("FAILED TO REMOVE THEMETOOL: " + hr);
Expand Down Expand Up @@ -179,7 +179,7 @@ private static bool InstallThemes()
Helper.OperationType.Copy);

Logger.WriteLine("Copied Themetool.");
int hr = 0;
nint hr = 0;
try
{
hr = RectifyThemeUtil.Utility.InstallThemeTool();
Expand Down Expand Up @@ -213,7 +213,7 @@ private static bool InstallThemes()
UninstallMsstyles();
Helper.SafeFileDeletion(Path.Combine(Variables.Windir, "ThemeTool.exe"));

int hr = 0;
nint hr = 0;
try
{
hr = RectifyThemeUtil.Utility.UninstallThemeTool();
Expand Down
22 changes: 22 additions & 0 deletions Rectify11Installer/Rectify11Installer.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,28 @@
<PropertyGroup>
<StartupObject>Rectify11Installer.Program</StartupObject>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|x64'">
<DebugSymbols>true</DebugSymbols>
<OutputPath>bin\x64\Debug\</OutputPath>
<DefineConstants>DEBUG;TRACE</DefineConstants>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
<DebugType>full</DebugType>
<PlatformTarget>x64</PlatformTarget>
<LangVersion>9.0</LangVersion>
<ErrorReport>prompt</ErrorReport>
<CodeAnalysisRuleSet>empty.ruleset</CodeAnalysisRuleSet>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release|x64'">
<OutputPath>bin\x64\Release\</OutputPath>
<DefineConstants>TRACE</DefineConstants>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
<Optimize>true</Optimize>
<PlatformTarget>x64</PlatformTarget>
<UseVSHostingProcess>false</UseVSHostingProcess>
<GenerateSerializationAssemblies>On</GenerateSerializationAssemblies>
<LangVersion>9.0</LangVersion>
<ErrorReport>prompt</ErrorReport>
</PropertyGroup>
<ItemGroup>
<Reference Include="libmsstyle, Version=1.0.0.0, Culture=neutral, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
Expand Down
29 changes: 16 additions & 13 deletions Rectify11Installer/Rectify11Installer.csproj.user
Original file line number Diff line number Diff line change
@@ -1,16 +1,19 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<PublishUrlHistory>output\|publish\</PublishUrlHistory>
<InstallUrlHistory />
<SupportUrlHistory />
<UpdateUrlHistory />
<BootstrapperUrlHistory />
<ErrorReportUrlHistory />
<FallbackCulture>en-US</FallbackCulture>
<VerifyUploadedFiles>false</VerifyUploadedFiles>
</PropertyGroup>
<PropertyGroup>
<EnableSecurityDebugging>false</EnableSecurityDebugging>
</PropertyGroup>
<PropertyGroup>
<PublishUrlHistory>output\|publish\</PublishUrlHistory>
<InstallUrlHistory />
<SupportUrlHistory />
<UpdateUrlHistory />
<BootstrapperUrlHistory />
<ErrorReportUrlHistory />
<FallbackCulture>en-US</FallbackCulture>
<VerifyUploadedFiles>false</VerifyUploadedFiles>
</PropertyGroup>
<PropertyGroup>
<EnableSecurityDebugging>false</EnableSecurityDebugging>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|AnyCPU'">
<EnableUnmanagedDebugging>true</EnableUnmanagedDebugging>
</PropertyGroup>
</Project>
15 changes: 8 additions & 7 deletions Rectify11Installer/Win32/RectifyUtil.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,16 +12,17 @@ public class CRectifyUtil
}

[Guid("A7BCDC3B-C5A2-44BB-B8EC-560B24ACAAD8")]
[InterfaceType(ComInterfaceType.InterfaceIsIUnknown)]
public interface IRectifyUtil
{
public int GetMicaSettings(ref bool enabled, ref bool tabbed);
public int SetMicaForEveryoneEnabled(ref bool enabled, ref bool tabbed);
public int GetCurrentMenuIndex(ref int index);
public int SetCurrentMenuByIndex(ref int index);
public nint GetMicaSettings(ref bool enabled, ref bool tabbed);
public nint SetMicaForEveryoneEnabled(ref bool enabled, ref bool tabbed);
public nint GetCurrentMenuIndex(ref int index);
public nint SetCurrentMenuByIndex(ref int index);

public int ApplyTheme(string themeName);
public int InstallThemeTool();
public int UninstallThemeTool();
public nint ApplyTheme(string themeName);
public nint InstallThemeTool();
public nint UninstallThemeTool();
}

public static class RectifyThemeUtil
Expand Down
2 changes: 1 addition & 1 deletion RectifyControlPanel2

0 comments on commit 6b51fa0

Please sign in to comment.