Skip to content

Commit

Permalink
Merge pull request #2867 from nicehash/NL-2245_debugging_plugins_fix
Browse files Browse the repository at this point in the history
NL-2245 Debugging plugins fix
  • Loading branch information
object05 authored Mar 13, 2023
2 parents 41479b9 + a6d37e9 commit 4994c1f
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 10 deletions.
27 changes: 17 additions & 10 deletions src/NHMCore/Mining/Plugins/MinerPluginsManager.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
using Newtonsoft.Json;
using BrokenMiner;
using Example;
using FakePlugin;
using LolMiner;
using NanoMiner;
using NBMiner;
using Newtonsoft.Json;
using NHM.Common;
using NHM.Common.Configs;
using NHM.Common.Enums;
Expand All @@ -19,6 +25,7 @@
using System.Linq;
using System.Threading;
using System.Threading.Tasks;
using XMRig;

namespace NHMCore.Mining.Plugins
{
Expand All @@ -35,31 +42,31 @@ static MinerPluginsManager()
new BrokenMiner.BrokenMinerPlugin(),
#endif
#if INTEGRATE_ExamplePlugin_PLUGIN
new Example.ExamplePlugin(),
new ExampleMiner.ExamplePlugin(),
#endif
#if INTEGRATE_FakePlugin_PLUGIN
new FakePlugin.FakePlugin(),
#endif

// real miners
#if INTEGRATE_NBMiner_PLUGIN
new NBMiner.NBMinerPlugin(),
new NBMinerPlugin(),
#endif
#if INTEGRATE_NanoMiner_PLUGIN
new NanoMiner.NanoMinerPlugin(),
new NanoMinerPlugin(),
#endif
#if INTEGRATE_LolMiner_PLUGIN
new LolMiner.LolMinerPlugin(),
new LolMinerPlugin(),
#endif
#if INTEGRATE_XMRig_PLUGIN
new XMRig.XMRigPlugin(),
new XMRigPlugin(),
#endif

#if INTEGRATE_ALL_PLUGINS
new NBMiner.NBMinerPlugin(),
new NanoMiner.NanoMinerPlugin(),
new LolMiner.LolMinerPlugin(),
new XMRig.XMRigPlugin(),
new NBMinerPlugin(),
new NanoMinerPlugin(),
new LolMinerPlugin(),
new XMRigPlugin(),
#endif

};
Expand Down
7 changes: 7 additions & 0 deletions src/NHMCore/NHMCore.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,14 @@
<PackageReference Include="WebSocketSharp.Standard" Version="1.0.3" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\Miners\LolMiner\MP.LolMiner.csproj" />
<ProjectReference Include="..\Miners\MP.Joker\MP.Joker.csproj" />
<ProjectReference Include="..\Miners\NanoMiner\MP.NanoMiner.csproj" />
<ProjectReference Include="..\Miners\NBMiner\MP.NBMiner.csproj" />
<ProjectReference Include="..\Miners\XMRig\MP.XMRig.csproj" />
<ProjectReference Include="..\Miners\__DEV__BrokenMiner\MP.__DEV__BrokenMiner.csproj" />
<ProjectReference Include="..\Miners\__DEV__ExamplePlugin\MP.__DEV__ExamplePlugin.csproj" />
<ProjectReference Include="..\Miners\__DEV__FakePlugin\MP.__DEV__FakePlugin.csproj" />
<ProjectReference Include="..\NHM.CommonWin32\NHM.CommonWin32.csproj" />
<ProjectReference Include="..\NHM.CredentialValidators\NHM.CredentialValidators.csproj" />
<ProjectReference Include="..\NHM.DeviceDetection\NHM.DeviceDetection.csproj" />
Expand Down

0 comments on commit 4994c1f

Please sign in to comment.