Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 3 additions & 4 deletions MDRP/App.config
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<startup>
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.7.2"/>
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.8"/>
</startup>
<runtime>
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
Expand All @@ -10,8 +10,7 @@
<bindingRedirect oldVersion="0.0.0.0-4.0.3.0" newVersion="4.0.3.0"/>
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="System.Runtime.CompilerServices.Unsafe" publicKeyToken="b03f5f7f11d50a3a"
culture="neutral"/>
<assemblyIdentity name="System.Runtime.CompilerServices.Unsafe" publicKeyToken="b03f5f7f11d50a3a" culture="neutral"/>
<bindingRedirect oldVersion="0.0.0.0-4.0.6.0" newVersion="4.0.6.0"/>
</dependentAssembly>
</assemblyBinding>
Expand Down
Binary file added MDRP/DiscordRPC.dll
Binary file not shown.
9 changes: 5 additions & 4 deletions MDRP/MDRP.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<OutputType>Exe</OutputType>
<RootNamespace>MDRP</RootNamespace>
<AssemblyName>MDRP</AssemblyName>
<TargetFrameworkVersion>v4.7.2</TargetFrameworkVersion>
<TargetFrameworkVersion>v4.8</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
<AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
<Deterministic>true</Deterministic>
Expand Down Expand Up @@ -97,11 +97,15 @@
</ItemGroup>
<ItemGroup>
<Content Include="discordapp.ico" />
<Content Include="DiscordRPC.dll" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="CSCore">
<Version>1.2.1.2</Version>
</PackageReference>
<PackageReference Include="DiscordRichPresence">
<Version>1.3.0.28</Version>
</PackageReference>
<PackageReference Include="FuzzySharp">
<Version>2.0.2</Version>
</PackageReference>
Expand All @@ -116,9 +120,6 @@
<WCFMetadata Include="Connected Services\" />
</ItemGroup>
<ItemGroup>
<Reference Include="DiscordRPC, Version=1.0.203.0, Culture=neutral, PublicKeyToken=null">
<HintPath>libs\DiscordRPC.dll</HintPath>
</Reference>
<Reference Include="Microsoft.CSharp" />
<Reference Include="System" />
</ItemGroup>
Expand Down
8 changes: 6 additions & 2 deletions MDRP/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -557,7 +557,8 @@ private static void HandleLocalRequests()
{
activeClient.SetPresence(new RichPresence
{
Details = activeClient.CurrentPresence.Details,
Type = ActivityType.Listening,
Details = activeClient.CurrentPresence.Details,
State = activeClient.CurrentPresence.State,
Assets = new Assets
{
Expand Down Expand Up @@ -644,6 +645,7 @@ private static void HandleLocalRequests()

RichPresence richPresence = new RichPresence
{
Type = ActivityType.Listening,
Details = newDetailsWithTitle,
State = newStateWithArtist,
Assets = new Assets
Expand Down Expand Up @@ -685,6 +687,7 @@ private static void HandleLocalRequests()
if (activeClient != null)
activeClient.SetPresence(new RichPresence
{
Type = ActivityType.Listening,
Details = langHelper[LocalizableStrings.FAILED_TO_GET_INFO]
});
Console.Write(langHelper[LocalizableStrings.FAILED_TO_GET_INFO] + " \r");
Expand Down Expand Up @@ -789,7 +792,8 @@ private static void HandleRemoteRequests()

RichPresence richPresence = new RichPresence
{
Details = PrepareFormatStringCapped(lastMessage, lineData.Split('\n')[0], titleLength),
Type = ActivityType.Listening,
Details = PrepareFormatStringCapped(lastMessage, lineData.Split('\n')[0], titleLength),
State = PrepareFormatStringCapped(lastMessage, lineData.Split('\n')[1], titleLength),

Timestamps = _isPlaying
Expand Down
Binary file modified MDRP/bin/Release/DiscordRPC.dll
Binary file not shown.
Binary file modified MDRP/bin/Release/MDRP.exe
Binary file not shown.
38 changes: 16 additions & 22 deletions MDRP/bin/Release/MDRP.exe.config
Original file line number Diff line number Diff line change
@@ -1,24 +1,18 @@
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<startup>
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.7.2" />
</startup>
<runtime>
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
<dependentAssembly>
<assemblyIdentity name="System.ValueTuple" publicKeyToken="cc7b13ffcd2ddd51" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-4.0.3.0" newVersion="4.0.3.0" />
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="System.Runtime.CompilerServices.Unsafe" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-4.0.6.0" newVersion="4.0.6.0" />
</dependentAssembly>
</assemblyBinding>
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
<dependentAssembly>
<assemblyIdentity name="Newtonsoft.Json" publicKeyToken="30ad4fe6b2a6aeed" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-13.0.0.0" newVersion="13.0.0.0" />
</dependentAssembly>
</assemblyBinding>
</runtime>
</configuration>
<startup>
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.8"/>
</startup>
<runtime>
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
<dependentAssembly>
<assemblyIdentity name="System.ValueTuple" publicKeyToken="cc7b13ffcd2ddd51" culture="neutral"/>
<bindingRedirect oldVersion="0.0.0.0-4.0.3.0" newVersion="4.0.3.0"/>
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="System.Runtime.CompilerServices.Unsafe" publicKeyToken="b03f5f7f11d50a3a" culture="neutral"/>
<bindingRedirect oldVersion="0.0.0.0-4.0.6.0" newVersion="4.0.6.0"/>
</dependentAssembly>
</assemblyBinding>
</runtime>
</configuration>
Binary file modified MDRP/libs/DiscordRPC.dll
Binary file not shown.
Binary file added MDRP/libs/DiscordRPC.dll.bak
Binary file not shown.