Fix app disabling launching games page incorrectly

This commit is contained in:
pizzaboxer 2023-01-03 13:25:12 +00:00
parent b950488ed7
commit 92dd25ac25
2 changed files with 10 additions and 10 deletions

View File

@ -12,6 +12,7 @@ using Bloxstrap.Helpers.Integrations;
using Bloxstrap.Helpers.RSMM; using Bloxstrap.Helpers.RSMM;
using Bloxstrap.Models; using Bloxstrap.Models;
using System.Net; using System.Net;
using Bloxstrap.Properties;
namespace Bloxstrap namespace Bloxstrap
{ {
@ -179,6 +180,12 @@ namespace Bloxstrap
Dialog.Message = "Starting Roblox..."; Dialog.Message = "Starting Roblox...";
if (LaunchCommandLine == "--app" && Program.Settings.UseDisableAppPatch)
{
Utilities.OpenWebsite("https://www.roblox.com/games");
return;
}
// launch time isn't really required for all launches, but it's usually just safest to do this // launch time isn't really required for all launches, but it's usually just safest to do this
LaunchCommandLine += " --launchtime=" + DateTimeOffset.Now.ToUnixTimeMilliseconds(); LaunchCommandLine += " --launchtime=" + DateTimeOffset.Now.ToUnixTimeMilliseconds();
@ -218,10 +225,6 @@ namespace Bloxstrap
await Task.Delay(3000); await Task.Delay(3000);
// now we move onto handling rich presence // now we move onto handling rich presence
// 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) if (Program.Settings.UseDiscordRichPresence)
{ {
richPresence = new DiscordRichPresence(); richPresence = new DiscordRichPresence();

View File

@ -136,7 +136,7 @@ namespace Bloxstrap
string commandLine = ""; string commandLine = "";
#if DEBUG #if false //DEBUG
new Preferences().ShowDialog(); new Preferences().ShowDialog();
#else #else
if (args.Length > 0) if (args.Length > 0)
@ -161,14 +161,11 @@ namespace Bloxstrap
} }
else else
{ {
commandLine = String.Join(" ", args); commandLine = "--app";
} }
} }
else else
{ {
if (Settings.UseDisableAppPatch)
Utilities.OpenWebsite("https://www.roblox.com/games");
else
commandLine = "--app"; commandLine = "--app";
} }
#endif #endif