Skip to content

Commit

Permalink
added new project configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
34736384 committed Jun 29, 2024
1 parent d0e78aa commit 282a74a
Show file tree
Hide file tree
Showing 5 changed files with 94 additions and 1 deletion.
66 changes: 66 additions & 0 deletions UnlockerStub/UnlockerStub.vcxproj
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,14 @@
<Configuration>Debug</Configuration>
<Platform>Win32</Platform>
</ProjectConfiguration>
<ProjectConfiguration Include="ReleaseMin|Win32">
<Configuration>ReleaseMin</Configuration>
<Platform>Win32</Platform>
</ProjectConfiguration>
<ProjectConfiguration Include="ReleaseMin|x64">
<Configuration>ReleaseMin</Configuration>
<Platform>x64</Platform>
</ProjectConfiguration>
<ProjectConfiguration Include="Release|Win32">
<Configuration>Release</Configuration>
<Platform>Win32</Platform>
Expand Down Expand Up @@ -39,6 +47,13 @@
<WholeProgramOptimization>true</WholeProgramOptimization>
<CharacterSet>Unicode</CharacterSet>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='ReleaseMin|Win32'" Label="Configuration">
<ConfigurationType>Application</ConfigurationType>
<UseDebugLibraries>false</UseDebugLibraries>
<PlatformToolset>v143</PlatformToolset>
<WholeProgramOptimization>true</WholeProgramOptimization>
<CharacterSet>Unicode</CharacterSet>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="Configuration">
<ConfigurationType>DynamicLibrary</ConfigurationType>
<UseDebugLibraries>true</UseDebugLibraries>
Expand All @@ -52,6 +67,13 @@
<WholeProgramOptimization>true</WholeProgramOptimization>
<CharacterSet>Unicode</CharacterSet>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='ReleaseMin|x64'" Label="Configuration">
<ConfigurationType>DynamicLibrary</ConfigurationType>
<UseDebugLibraries>false</UseDebugLibraries>
<PlatformToolset>v143</PlatformToolset>
<WholeProgramOptimization>true</WholeProgramOptimization>
<CharacterSet>Unicode</CharacterSet>
</PropertyGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
<ImportGroup Label="ExtensionSettings">
</ImportGroup>
Expand All @@ -63,16 +85,25 @@
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
</ImportGroup>
<ImportGroup Condition="'$(Configuration)|$(Platform)'=='ReleaseMin|Win32'" Label="PropertySheets">
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
</ImportGroup>
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
</ImportGroup>
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
</ImportGroup>
<ImportGroup Condition="'$(Configuration)|$(Platform)'=='ReleaseMin|x64'" Label="PropertySheets">
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
</ImportGroup>
<PropertyGroup Label="UserMacros" />
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
<OutDir>$(SolutionDir)unlockfps_nc\Resources\</OutDir>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='ReleaseMin|x64'">
<OutDir>$(SolutionDir)unlockfps_nc\Resources\</OutDir>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
<OutDir>$(SolutionDir)unlockfps_nc\Resources\</OutDir>
</PropertyGroup>
Expand Down Expand Up @@ -104,6 +135,22 @@
<GenerateDebugInformation>true</GenerateDebugInformation>
</Link>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='ReleaseMin|Win32'">
<ClCompile>
<WarningLevel>Level3</WarningLevel>
<FunctionLevelLinking>true</FunctionLevelLinking>
<IntrinsicFunctions>true</IntrinsicFunctions>
<SDLCheck>true</SDLCheck>
<PreprocessorDefinitions>WIN32;NDEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<ConformanceMode>true</ConformanceMode>
</ClCompile>
<Link>
<SubSystem>Console</SubSystem>
<EnableCOMDATFolding>true</EnableCOMDATFolding>
<OptimizeReferences>true</OptimizeReferences>
<GenerateDebugInformation>true</GenerateDebugInformation>
</Link>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
<ClCompile>
<WarningLevel>Level3</WarningLevel>
Expand Down Expand Up @@ -138,6 +185,25 @@
<EntryPointSymbol>DllMain</EntryPointSymbol>
</Link>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='ReleaseMin|x64'">
<ClCompile>
<WarningLevel>Level3</WarningLevel>
<FunctionLevelLinking>true</FunctionLevelLinking>
<IntrinsicFunctions>true</IntrinsicFunctions>
<SDLCheck>false</SDLCheck>
<PreprocessorDefinitions>NDEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<ConformanceMode>true</ConformanceMode>
<ExceptionHandling>false</ExceptionHandling>
<BufferSecurityCheck>false</BufferSecurityCheck>
</ClCompile>
<Link>
<SubSystem>NotSet</SubSystem>
<EnableCOMDATFolding>true</EnableCOMDATFolding>
<OptimizeReferences>true</OptimizeReferences>
<GenerateDebugInformation>true</GenerateDebugInformation>
<EntryPointSymbol>DllMain</EntryPointSymbol>
</Link>
</ItemDefinitionGroup>
<ItemGroup>
<ClCompile Include="dllmain.cpp" />
</ItemGroup>
Expand Down
15 changes: 15 additions & 0 deletions unlockfps_nc.sln
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@ Global
Release|Any CPU = Release|Any CPU
Release|x64 = Release|x64
Release|x86 = Release|x86
ReleaseMin|Any CPU = ReleaseMin|Any CPU
ReleaseMin|x64 = ReleaseMin|x64
ReleaseMin|x86 = ReleaseMin|x86
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{AB706C74-000D-4A43-909C-D0EE906003B8}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
Expand All @@ -32,6 +35,12 @@ Global
{AB706C74-000D-4A43-909C-D0EE906003B8}.Release|x64.Build.0 = Release|Any CPU
{AB706C74-000D-4A43-909C-D0EE906003B8}.Release|x86.ActiveCfg = Release|Any CPU
{AB706C74-000D-4A43-909C-D0EE906003B8}.Release|x86.Build.0 = Release|Any CPU
{AB706C74-000D-4A43-909C-D0EE906003B8}.ReleaseMin|Any CPU.ActiveCfg = ReleaseMin|Any CPU
{AB706C74-000D-4A43-909C-D0EE906003B8}.ReleaseMin|Any CPU.Build.0 = ReleaseMin|Any CPU
{AB706C74-000D-4A43-909C-D0EE906003B8}.ReleaseMin|x64.ActiveCfg = ReleaseMin|Any CPU
{AB706C74-000D-4A43-909C-D0EE906003B8}.ReleaseMin|x64.Build.0 = ReleaseMin|Any CPU
{AB706C74-000D-4A43-909C-D0EE906003B8}.ReleaseMin|x86.ActiveCfg = ReleaseMin|Any CPU
{AB706C74-000D-4A43-909C-D0EE906003B8}.ReleaseMin|x86.Build.0 = ReleaseMin|Any CPU
{517821E2-89AD-4EA4-B788-E8948BF27D8D}.Debug|Any CPU.ActiveCfg = Debug|x64
{517821E2-89AD-4EA4-B788-E8948BF27D8D}.Debug|Any CPU.Build.0 = Debug|x64
{517821E2-89AD-4EA4-B788-E8948BF27D8D}.Debug|x64.ActiveCfg = Debug|x64
Expand All @@ -44,6 +53,12 @@ Global
{517821E2-89AD-4EA4-B788-E8948BF27D8D}.Release|x64.Build.0 = Release|x64
{517821E2-89AD-4EA4-B788-E8948BF27D8D}.Release|x86.ActiveCfg = Release|Win32
{517821E2-89AD-4EA4-B788-E8948BF27D8D}.Release|x86.Build.0 = Release|Win32
{517821E2-89AD-4EA4-B788-E8948BF27D8D}.ReleaseMin|Any CPU.ActiveCfg = ReleaseMin|x64
{517821E2-89AD-4EA4-B788-E8948BF27D8D}.ReleaseMin|Any CPU.Build.0 = ReleaseMin|x64
{517821E2-89AD-4EA4-B788-E8948BF27D8D}.ReleaseMin|x64.ActiveCfg = Release|x64
{517821E2-89AD-4EA4-B788-E8948BF27D8D}.ReleaseMin|x64.Build.0 = Release|x64
{517821E2-89AD-4EA4-B788-E8948BF27D8D}.ReleaseMin|x86.ActiveCfg = ReleaseMin|Win32
{517821E2-89AD-4EA4-B788-E8948BF27D8D}.ReleaseMin|x86.Build.0 = ReleaseMin|Win32
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
Expand Down
6 changes: 6 additions & 0 deletions unlockfps_nc/SettingsForm.cs
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,10 @@ public SettingsForm(ConfigService configService)
_config = _configService.Config;

SetupBindings();

#if RELEASEMIN
TabCtrlSettings.Controls.Remove(TabDlls);
#endif
}

private void SetupBindings()
Expand All @@ -45,9 +49,11 @@ private void SetupBindings()
ComboFullscreenMode.DataBindings.Add("SelectedIndex", _config, "IsExclusiveFullscreen", true, DataSourceUpdateMode.OnPropertyChanged);
InputMonitorNum.DataBindings.Add("Value", _config, "MonitorNum", true, DataSourceUpdateMode.OnPropertyChanged);

#if !RELEASEMIN
// DLLs
RefreshDllList();
CBSuspendLoad.DataBindings.Add("Checked", _config, "SuspendLoad", true, DataSourceUpdateMode.OnPropertyChanged);
#endif
}

private void RefreshDllList()
Expand Down
3 changes: 2 additions & 1 deletion unlockfps_nc/Utility/ProcessUtils.cs
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ public static string GetProcessPathFromPid(uint pid, out IntPtr processHandle)

public static bool InjectDlls(IntPtr processHandle, List<string> dllPaths)
{
#if !RELEASEMIN
if (dllPaths.Count == 0)
return true;

Expand Down Expand Up @@ -64,7 +65,7 @@ public static bool InjectDlls(IntPtr processHandle, List<string> dllPaths)
}

Native.VirtualFreeEx(processHandle, remoteVa, 0, FreeType.RELEASE);

#endif
return true;
}

Expand Down
5 changes: 5 additions & 0 deletions unlockfps_nc/unlockfps_nc.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
<ProduceReferenceAssembly>False</ProduceReferenceAssembly>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
<SupportedOSPlatformVersion>7.0</SupportedOSPlatformVersion>
<Configurations>Debug;Release;ReleaseMin</Configurations>
</PropertyGroup>

<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">
Expand All @@ -22,6 +23,10 @@
<DebugType>full</DebugType>
</PropertyGroup>

<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='ReleaseMin|AnyCPU'">
<DebugType>full</DebugType>
</PropertyGroup>

<ItemGroup>
<None Remove="dm34zubt.k4i~" />
<None Remove="Resources\UnlockerStub.dll" />
Expand Down

0 comments on commit 282a74a

Please sign in to comment.