From 3e5eedfa4597fe727d136f54133f019ef85227c3 Mon Sep 17 00:00:00 2001 From: pizzaboxer <41478239+pizzaboxer@users.noreply.github.com> Date: Thu, 10 Nov 2022 11:00:16 +0000 Subject: [PATCH] Changes for v1.5.2 - Disable legacy --play launching (#40) - --launchtime uses milliseconds now - Roblox app is launched after install --- Bloxstrap/Bloxstrap.csproj | 4 ++-- Bloxstrap/Bootstrapper.cs | 8 ++++---- Bloxstrap/Helpers/Protocol.cs | 3 +++ README.md | 1 - 4 files changed, 9 insertions(+), 7 deletions(-) diff --git a/Bloxstrap/Bloxstrap.csproj b/Bloxstrap/Bloxstrap.csproj index 842ef1b9..8bb66e51 100644 --- a/Bloxstrap/Bloxstrap.csproj +++ b/Bloxstrap/Bloxstrap.csproj @@ -10,8 +10,8 @@ AnyCPU AnyCPU;x86 Bloxstrap.ico - 1.5.1 - 1.5.1.0 + 1.5.2 + 1.5.2.0 diff --git a/Bloxstrap/Bootstrapper.cs b/Bloxstrap/Bootstrapper.cs index 2f99fdbe..f5ba03d7 100644 --- a/Bloxstrap/Bootstrapper.cs +++ b/Bloxstrap/Bootstrapper.cs @@ -118,9 +118,9 @@ public async Task Run() await RbxFpsUnlocker.CheckInstall(); - if (Program.IsFirstRun) - Dialog.ShowSuccess($"{Program.ProjectName} has been installed"); - else + //if (Program.IsFirstRun) + // Dialog.ShowSuccess($"{Program.ProjectName} has been installed"); + //else await StartRoblox(); Program.Exit(); @@ -169,7 +169,7 @@ private async Task StartRoblox() Dialog.Message = "Starting Roblox..."; // launch time isn't really required for all launches, but it's usually just safest to do this - LaunchCommandLine += " --launchtime=" + DateTimeOffset.Now.ToUnixTimeSeconds(); + LaunchCommandLine += " --launchtime=" + DateTimeOffset.Now.ToUnixTimeMilliseconds(); if (Program.Settings.Channel.ToLower() != DeployManager.DefaultChannel.ToLower()) LaunchCommandLine += " -channel " + Program.Settings.Channel.ToLower(); diff --git a/Bloxstrap/Helpers/Protocol.cs b/Bloxstrap/Helpers/Protocol.cs index b657c104..c94e1e00 100644 --- a/Bloxstrap/Helpers/Protocol.cs +++ b/Bloxstrap/Helpers/Protocol.cs @@ -38,6 +38,9 @@ public static string ParseUri(string protocol) if (!UriKeyArgMap.ContainsKey(key) || String.IsNullOrEmpty(val)) continue; + if (key == "launchmode" && val == "play") + val = "app"; + if (key == "placelauncherurl") val = HttpUtility.UrlDecode(val).Replace("browserTrackerId", "lol"); diff --git a/README.md b/README.md index a9975cfc..b0f3d9e0 100644 --- a/README.md +++ b/README.md @@ -12,7 +12,6 @@ Bloxstrap is only supported for PCs running Windows. ## Features Here's some of the features that Bloxstrap provides over the stock Roblox bootstrapper: -* Doesn't force you to launch Roblox in the Desktop App * Support for persistent file modifications (e.g. re-adding the old death sound) * Gives you the ability to opt-in to pre-release testing channels * Integration with Discord Rich Presence and [rbxfpsunlocker](https://github.com/axstin/rbxfpsunlocker)