Skip to content

Commit

Permalink
Fix app disabling launching games page incorrectly
Browse files Browse the repository at this point in the history
  • Loading branch information
pizzaboxer committed Jan 3, 2023
1 parent b950488 commit 92dd25a
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
11 changes: 7 additions & 4 deletions Bloxstrap/Bootstrapper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
using Bloxstrap.Helpers.RSMM;
using Bloxstrap.Models;
using System.Net;
using Bloxstrap.Properties;

namespace Bloxstrap
{
Expand Down Expand Up @@ -179,6 +180,12 @@ private async Task StartRoblox()

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();

Expand Down Expand Up @@ -218,10 +225,6 @@ private async Task StartRoblox()
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();
Expand Down
9 changes: 3 additions & 6 deletions Bloxstrap/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ static void Main(string[] args)

string commandLine = "";

#if DEBUG
#if false //DEBUG
new Preferences().ShowDialog();
#else
if (args.Length > 0)
Expand All @@ -161,15 +161,12 @@ static void Main(string[] args)
}
else
{
commandLine = String.Join(" ", args);
commandLine = "--app";
}
}
else
{
if (Settings.UseDisableAppPatch)
Utilities.OpenWebsite("https://www.roblox.com/games");
else
commandLine = "--app";
commandLine = "--app";
}
#endif

Expand Down

0 comments on commit 92dd25a

Please sign in to comment.