Skip to content

Commit

Permalink
Updated for SDRSharp 1811
Browse files Browse the repository at this point in the history
  • Loading branch information
EnderIce2 committed May 10, 2021
1 parent 0b51536 commit bf44bd1
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 12 deletions.
11 changes: 5 additions & 6 deletions MainPlugin.cs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ public class MainPlugin : ISharpPlugin
bool RPCalreadyLoaded;
private ISharpControl _control;
bool playedBefore;
private SDRSharp.FrontEnds.SpyServer.ControllerPanel controllerPanel;
//private SDRSharp.FrontEnds.SpyServer.ControllerPanel controllerPanel;
private TopWindowMessages windowMessages;
[System.Diagnostics.CodeAnalysis.SuppressMessage("Style", "IDE0044:Add readonly modifier", Justification = "<Pending>")]
private RichPresence presence = new RichPresence()
Expand All @@ -43,7 +43,6 @@ public class MainPlugin : ISharpPlugin
public void Initialize(ISharpControl control)
{
IConfigurationPanelProvider configurationPanelProvider;

if (Utils.GetBooleanSetting("ShowWelcomePage", true))
{
new WelcomeForm().ShowDialog();
Expand Down Expand Up @@ -132,7 +131,7 @@ public void Initialize(ISharpControl control)
try
{
configurationPanelProvider = (IConfigurationPanelProvider)_control.Source;
controllerPanel = (SDRSharp.FrontEnds.SpyServer.ControllerPanel)configurationPanelProvider.Gui;
//controllerPanel = (SDRSharp.FrontEnds.SpyServer.ControllerPanel)configurationPanelProvider.Gui;
}
catch (Exception ex)
{
Expand Down Expand Up @@ -229,9 +228,9 @@ async Task MainLoop()
LogWriter.WriteToFile("Setting secret...");
try
{
string sdr_url = "sdr://" + controllerPanel.Host + ":" + controllerPanel.Port + "/";
LogWriter.WriteToFile(sdr_url);
presence.Secrets.JoinSecret = sdr_url;
//string sdr_url = "sdr://" + controllerPanel.Host + ":" + controllerPanel.Port + "/";
//LogWriter.WriteToFile(sdr_url);
//presence.Secrets.JoinSecret = sdr_url;
}
catch (Exception ex)
{
Expand Down
4 changes: 2 additions & 2 deletions Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -32,5 +32,5 @@
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.0.0.0")]
[assembly: AssemblyFileVersion("1.0.0.0")]
[assembly: AssemblyVersion("1.0.0.1")]
[assembly: AssemblyFileVersion("1.0.0.1")]
5 changes: 1 addition & 4 deletions SDRSharpPlugin.DiscordRPC.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -46,10 +46,6 @@
<HintPath>packages\Newtonsoft.Json.12.0.3\lib\net45\Newtonsoft.Json.dll</HintPath>
<EmbedInteropTypes>False</EmbedInteropTypes>
</Reference>
<Reference Include="SDRSharp, Version=1.0.0.1765, Culture=neutral, processorArchitecture=x86">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\..\..\Downloads\sdrsharp-x86\SDRSharp.exe</HintPath>
</Reference>
<Reference Include="SDRSharp.Common, Version=0.0.0.0, Culture=neutral, processorArchitecture=x86">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\..\sdrsharp-x86\SDRSharp.Common.dll</HintPath>
Expand All @@ -65,6 +61,7 @@
<Reference Include="System" />
<Reference Include="System.Core" />
<Reference Include="System.Drawing" />
<Reference Include="System.Runtime" />
<Reference Include="System.Windows.Forms" />
<Reference Include="System.Xml.Linq" />
<Reference Include="System.Data.DataSetExtensions" />
Expand Down

0 comments on commit bf44bd1

Please sign in to comment.