Bump to v1.5.3 and enable DRP for desktop app

This commit is contained in:
pizzaboxer 2022-11-12 10:26:59 +00:00
parent 3e5eedfa45
commit fe24e06367
2 changed files with 7 additions and 4 deletions

View File

@ -10,8 +10,8 @@
<PlatformTarget>AnyCPU</PlatformTarget>
<Platforms>AnyCPU;x86</Platforms>
<ApplicationIcon>Bloxstrap.ico</ApplicationIcon>
<Version>1.5.2</Version>
<FileVersion>1.5.2.0</FileVersion>
<Version>1.5.3</Version>
<FileVersion>1.5.3.0</FileVersion>
</PropertyGroup>
<ItemGroup>

View File

@ -207,8 +207,11 @@ namespace Bloxstrap
await Task.Delay(6000);
// now we move onto handling rich presence
// except beta app launch since we have to rely strictly on website launch
if (Program.Settings.UseDiscordRichPresence && !LaunchCommandLine.Contains("--app"))
// this is going to be an issue for desktop app launches as this gets the place id from the command line,
// but the desktop app launch can switch games without having to close the client
// i might be able to experiment with reading from the latest log file in realtime to circumvent this,
// but i have no idea how reliable it will be. todo?
if (Program.Settings.UseDiscordRichPresence)
{
// probably not the most ideal way to do this
string? placeId = Utilities.GetKeyValue(LaunchCommandLine, "placeId=", '&');