mirror of
https://github.com/EnderIce2/SDR-RPC.git
synced 2025-05-28 22:44:27 +00:00
Updated for SDRSharp 1811
This commit is contained in:
parent
0b51536839
commit
bf44bd1076
@ -20,7 +20,7 @@ namespace EnderIce2.SDRSharpPlugin
|
|||||||
bool RPCalreadyLoaded;
|
bool RPCalreadyLoaded;
|
||||||
private ISharpControl _control;
|
private ISharpControl _control;
|
||||||
bool playedBefore;
|
bool playedBefore;
|
||||||
private SDRSharp.FrontEnds.SpyServer.ControllerPanel controllerPanel;
|
//private SDRSharp.FrontEnds.SpyServer.ControllerPanel controllerPanel;
|
||||||
private TopWindowMessages windowMessages;
|
private TopWindowMessages windowMessages;
|
||||||
[System.Diagnostics.CodeAnalysis.SuppressMessage("Style", "IDE0044:Add readonly modifier", Justification = "<Pending>")]
|
[System.Diagnostics.CodeAnalysis.SuppressMessage("Style", "IDE0044:Add readonly modifier", Justification = "<Pending>")]
|
||||||
private RichPresence presence = new RichPresence()
|
private RichPresence presence = new RichPresence()
|
||||||
@ -43,7 +43,6 @@ namespace EnderIce2.SDRSharpPlugin
|
|||||||
public void Initialize(ISharpControl control)
|
public void Initialize(ISharpControl control)
|
||||||
{
|
{
|
||||||
IConfigurationPanelProvider configurationPanelProvider;
|
IConfigurationPanelProvider configurationPanelProvider;
|
||||||
|
|
||||||
if (Utils.GetBooleanSetting("ShowWelcomePage", true))
|
if (Utils.GetBooleanSetting("ShowWelcomePage", true))
|
||||||
{
|
{
|
||||||
new WelcomeForm().ShowDialog();
|
new WelcomeForm().ShowDialog();
|
||||||
@ -132,7 +131,7 @@ namespace EnderIce2.SDRSharpPlugin
|
|||||||
try
|
try
|
||||||
{
|
{
|
||||||
configurationPanelProvider = (IConfigurationPanelProvider)_control.Source;
|
configurationPanelProvider = (IConfigurationPanelProvider)_control.Source;
|
||||||
controllerPanel = (SDRSharp.FrontEnds.SpyServer.ControllerPanel)configurationPanelProvider.Gui;
|
//controllerPanel = (SDRSharp.FrontEnds.SpyServer.ControllerPanel)configurationPanelProvider.Gui;
|
||||||
}
|
}
|
||||||
catch (Exception ex)
|
catch (Exception ex)
|
||||||
{
|
{
|
||||||
@ -229,9 +228,9 @@ namespace EnderIce2.SDRSharpPlugin
|
|||||||
LogWriter.WriteToFile("Setting secret...");
|
LogWriter.WriteToFile("Setting secret...");
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
string sdr_url = "sdr://" + controllerPanel.Host + ":" + controllerPanel.Port + "/";
|
//string sdr_url = "sdr://" + controllerPanel.Host + ":" + controllerPanel.Port + "/";
|
||||||
LogWriter.WriteToFile(sdr_url);
|
//LogWriter.WriteToFile(sdr_url);
|
||||||
presence.Secrets.JoinSecret = sdr_url;
|
//presence.Secrets.JoinSecret = sdr_url;
|
||||||
}
|
}
|
||||||
catch (Exception ex)
|
catch (Exception ex)
|
||||||
{
|
{
|
||||||
|
@ -32,5 +32,5 @@ using System.Runtime.InteropServices;
|
|||||||
// You can specify all the values or you can default the Build and Revision Numbers
|
// You can specify all the values or you can default the Build and Revision Numbers
|
||||||
// by using the '*' as shown below:
|
// by using the '*' as shown below:
|
||||||
// [assembly: AssemblyVersion("1.0.*")]
|
// [assembly: AssemblyVersion("1.0.*")]
|
||||||
[assembly: AssemblyVersion("1.0.0.0")]
|
[assembly: AssemblyVersion("1.0.0.1")]
|
||||||
[assembly: AssemblyFileVersion("1.0.0.0")]
|
[assembly: AssemblyFileVersion("1.0.0.1")]
|
||||||
|
@ -46,10 +46,6 @@
|
|||||||
<HintPath>packages\Newtonsoft.Json.12.0.3\lib\net45\Newtonsoft.Json.dll</HintPath>
|
<HintPath>packages\Newtonsoft.Json.12.0.3\lib\net45\Newtonsoft.Json.dll</HintPath>
|
||||||
<EmbedInteropTypes>False</EmbedInteropTypes>
|
<EmbedInteropTypes>False</EmbedInteropTypes>
|
||||||
</Reference>
|
</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">
|
<Reference Include="SDRSharp.Common, Version=0.0.0.0, Culture=neutral, processorArchitecture=x86">
|
||||||
<SpecificVersion>False</SpecificVersion>
|
<SpecificVersion>False</SpecificVersion>
|
||||||
<HintPath>..\..\sdrsharp-x86\SDRSharp.Common.dll</HintPath>
|
<HintPath>..\..\sdrsharp-x86\SDRSharp.Common.dll</HintPath>
|
||||||
@ -65,6 +61,7 @@
|
|||||||
<Reference Include="System" />
|
<Reference Include="System" />
|
||||||
<Reference Include="System.Core" />
|
<Reference Include="System.Core" />
|
||||||
<Reference Include="System.Drawing" />
|
<Reference Include="System.Drawing" />
|
||||||
|
<Reference Include="System.Runtime" />
|
||||||
<Reference Include="System.Windows.Forms" />
|
<Reference Include="System.Windows.Forms" />
|
||||||
<Reference Include="System.Xml.Linq" />
|
<Reference Include="System.Xml.Linq" />
|
||||||
<Reference Include="System.Data.DataSetExtensions" />
|
<Reference Include="System.Data.DataSetExtensions" />
|
||||||
|
Loading…
x
Reference in New Issue
Block a user