Skip to content

Commit bf44bd1

Browse files
author
EnderIce2
committed
Updated for SDRSharp 1811
1 parent 0b51536 commit bf44bd1

3 files changed

Lines changed: 8 additions & 12 deletions

File tree

MainPlugin.cs

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ public class MainPlugin : ISharpPlugin
2020
bool RPCalreadyLoaded;
2121
private ISharpControl _control;
2222
bool playedBefore;
23-
private SDRSharp.FrontEnds.SpyServer.ControllerPanel controllerPanel;
23+
//private SDRSharp.FrontEnds.SpyServer.ControllerPanel controllerPanel;
2424
private TopWindowMessages windowMessages;
2525
[System.Diagnostics.CodeAnalysis.SuppressMessage("Style", "IDE0044:Add readonly modifier", Justification = "<Pending>")]
2626
private RichPresence presence = new RichPresence()
@@ -43,7 +43,6 @@ public class MainPlugin : ISharpPlugin
4343
public void Initialize(ISharpControl control)
4444
{
4545
IConfigurationPanelProvider configurationPanelProvider;
46-
4746
if (Utils.GetBooleanSetting("ShowWelcomePage", true))
4847
{
4948
new WelcomeForm().ShowDialog();
@@ -132,7 +131,7 @@ public void Initialize(ISharpControl control)
132131
try
133132
{
134133
configurationPanelProvider = (IConfigurationPanelProvider)_control.Source;
135-
controllerPanel = (SDRSharp.FrontEnds.SpyServer.ControllerPanel)configurationPanelProvider.Gui;
134+
//controllerPanel = (SDRSharp.FrontEnds.SpyServer.ControllerPanel)configurationPanelProvider.Gui;
136135
}
137136
catch (Exception ex)
138137
{
@@ -229,9 +228,9 @@ async Task MainLoop()
229228
LogWriter.WriteToFile("Setting secret...");
230229
try
231230
{
232-
string sdr_url = "sdr://" + controllerPanel.Host + ":" + controllerPanel.Port + "/";
233-
LogWriter.WriteToFile(sdr_url);
234-
presence.Secrets.JoinSecret = sdr_url;
231+
//string sdr_url = "sdr://" + controllerPanel.Host + ":" + controllerPanel.Port + "/";
232+
//LogWriter.WriteToFile(sdr_url);
233+
//presence.Secrets.JoinSecret = sdr_url;
235234
}
236235
catch (Exception ex)
237236
{

Properties/AssemblyInfo.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,5 +32,5 @@
3232
// You can specify all the values or you can default the Build and Revision Numbers
3333
// by using the '*' as shown below:
3434
// [assembly: AssemblyVersion("1.0.*")]
35-
[assembly: AssemblyVersion("1.0.0.0")]
36-
[assembly: AssemblyFileVersion("1.0.0.0")]
35+
[assembly: AssemblyVersion("1.0.0.1")]
36+
[assembly: AssemblyFileVersion("1.0.0.1")]

SDRSharpPlugin.DiscordRPC.csproj

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -46,10 +46,6 @@
4646
<HintPath>packages\Newtonsoft.Json.12.0.3\lib\net45\Newtonsoft.Json.dll</HintPath>
4747
<EmbedInteropTypes>False</EmbedInteropTypes>
4848
</Reference>
49-
<Reference Include="SDRSharp, Version=1.0.0.1765, Culture=neutral, processorArchitecture=x86">
50-
<SpecificVersion>False</SpecificVersion>
51-
<HintPath>..\..\..\Downloads\sdrsharp-x86\SDRSharp.exe</HintPath>
52-
</Reference>
5349
<Reference Include="SDRSharp.Common, Version=0.0.0.0, Culture=neutral, processorArchitecture=x86">
5450
<SpecificVersion>False</SpecificVersion>
5551
<HintPath>..\..\sdrsharp-x86\SDRSharp.Common.dll</HintPath>
@@ -65,6 +61,7 @@
6561
<Reference Include="System" />
6662
<Reference Include="System.Core" />
6763
<Reference Include="System.Drawing" />
64+
<Reference Include="System.Runtime" />
6865
<Reference Include="System.Windows.Forms" />
6966
<Reference Include="System.Xml.Linq" />
7067
<Reference Include="System.Data.DataSetExtensions" />

0 commit comments

Comments
 (0)