Skip to content

Commit f56e33b

Browse files
committed
Changed DLL name.
1 parent d5b317e commit f56e33b

2 files changed

Lines changed: 6 additions & 18 deletions

File tree

NativeHelper/NativeHelper.vcxproj

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -71,25 +71,25 @@
7171
<PropertyGroup Label="UserMacros" />
7272
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
7373
<LinkIncremental>true</LinkIncremental>
74-
<TargetName>$(ProjectName)_x86d</TargetName>
74+
<TargetName>$(ProjectName)</TargetName>
7575
<OutDir>$(SolutionDir)bin\$(Configuration)\</OutDir>
7676
<IncludePath>.\beaengine\include;$(IncludePath)</IncludePath>
7777
</PropertyGroup>
7878
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
7979
<LinkIncremental>true</LinkIncremental>
80-
<TargetName>$(ProjectName)_x64d</TargetName>
80+
<TargetName>$(ProjectName)</TargetName>
8181
<OutDir>$(SolutionDir)\bin\$(Configuration)\x64\</OutDir>
8282
<IncludePath>.\beaengine\include;$(IncludePath)</IncludePath>
8383
</PropertyGroup>
8484
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
8585
<LinkIncremental>false</LinkIncremental>
86-
<TargetName>$(ProjectName)_x86</TargetName>
86+
<TargetName>$(ProjectName)</TargetName>
8787
<OutDir>$(SolutionDir)bin\$(Configuration)\</OutDir>
8888
<IncludePath>.\beaengine\include;$(IncludePath)</IncludePath>
8989
</PropertyGroup>
9090
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
9191
<LinkIncremental>false</LinkIncremental>
92-
<TargetName>$(ProjectName)_x64</TargetName>
92+
<TargetName>$(ProjectName)</TargetName>
9393
<OutDir>$(SolutionDir)bin\$(Configuration)\x64\</OutDir>
9494
<IncludePath>.\beaengine\include;$(IncludePath)</IncludePath>
9595
</PropertyGroup>

Util/NativeHelper.cs

Lines changed: 2 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ namespace ReClassNET.Util
88
{
99
public class NativeHelper : IDisposable
1010
{
11+
private const string NativeHelperDll = "NativeHelper.dll";
12+
1113
public enum RequestFunction
1214
{
1315
IsProcessValid,
@@ -103,20 +105,6 @@ public NativeHelper()
103105
{
104106
requestFunctionPtrReference = RequestFunctionPtr;
105107

106-
#if DEBUG
107-
#if WIN32
108-
const string NativeHelperDll = "NativeHelper_x86d.dll";
109-
#else
110-
const string NativeHelperDll = "NativeHelper_x64d.dll";
111-
#endif
112-
#else
113-
#if WIN32
114-
const string NativeHelperDll = "NativeHelper_x86.dll";
115-
#else
116-
const string NativeHelperDll = "NativeHelper_x64.dll";
117-
#endif
118-
#endif
119-
120108
nativeHelperHandle = NativeMethods.LoadLibrary(NativeHelperDll);
121109
if (nativeHelperHandle.IsNull())
122110
{

0 commit comments

Comments
 (0)