mirror of
https://github.com/bloxstraplabs/bloxstrap.git
synced 2025-04-21 10:01:27 -07:00
Fix app disabling launching games page incorrectly
This commit is contained in:
parent
b950488ed7
commit
92dd25ac25
@ -12,6 +12,7 @@ using Bloxstrap.Helpers.Integrations;
|
||||
using Bloxstrap.Helpers.RSMM;
|
||||
using Bloxstrap.Models;
|
||||
using System.Net;
|
||||
using Bloxstrap.Properties;
|
||||
|
||||
namespace Bloxstrap
|
||||
{
|
||||
@ -179,6 +180,12 @@ namespace Bloxstrap
|
||||
|
||||
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
|
||||
LaunchCommandLine += " --launchtime=" + DateTimeOffset.Now.ToUnixTimeMilliseconds();
|
||||
|
||||
@ -218,10 +225,6 @@ namespace Bloxstrap
|
||||
await Task.Delay(3000);
|
||||
|
||||
// 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)
|
||||
{
|
||||
richPresence = new DiscordRichPresence();
|
||||
|
@ -136,7 +136,7 @@ namespace Bloxstrap
|
||||
|
||||
string commandLine = "";
|
||||
|
||||
#if DEBUG
|
||||
#if false //DEBUG
|
||||
new Preferences().ShowDialog();
|
||||
#else
|
||||
if (args.Length > 0)
|
||||
@ -161,14 +161,11 @@ namespace Bloxstrap
|
||||
}
|
||||
else
|
||||
{
|
||||
commandLine = String.Join(" ", args);
|
||||
commandLine = "--app";
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
if (Settings.UseDisableAppPatch)
|
||||
Utilities.OpenWebsite("https://www.roblox.com/games");
|
||||
else
|
||||
commandLine = "--app";
|
||||
}
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user