Skip to content

Commit

Permalink
Minor alterations
Browse files Browse the repository at this point in the history
  • Loading branch information
pizzaboxer committed Jul 24, 2023
1 parent 01ea138 commit 5558e51
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
2 changes: 2 additions & 0 deletions Bloxstrap/App.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -320,6 +320,8 @@ protected override void OnStartup(StartupEventArgs e)
if (!IsNoLaunch && Settings.Prop.EnableActivityTracking)
NotifyIcon?.InitializeContextMenu();

Logger.WriteLine($"[App::OnStartup] Waiting for bootstrapper task to finish");

bootstrapperTask.Wait();

if (singletonMutex is not null)
Expand Down
6 changes: 1 addition & 5 deletions Bloxstrap/Integrations/DiscordRichPresence.cs
Original file line number Diff line number Diff line change
Expand Up @@ -172,10 +172,6 @@ public async Task<bool> SetCurrentGame()
Url = $"https://www.roblox.com/games/{placeId}"
});

// so turns out discord rejects the presence set request if the place name is less than 2 characters long lol
if (universeDetails.Name.Length < 2)
universeDetails.Name = $"{universeDetails.Name}\x2800\x2800\x2800";

if (!_activityWatcher.ActivityInGame || placeId != _activityWatcher.ActivityPlaceId)
{
App.Logger.WriteLine($"[DiscordRichPresence::SetCurrentGame] Aborting presence set because game activity has changed");
Expand All @@ -191,7 +187,7 @@ public async Task<bool> SetCurrentGame()

_currentPresence = new RichPresence
{
Details = universeDetails.Name,
Details = $"Playing {universeDetails.Name}",
State = status,
Timestamps = new Timestamps { Start = _timeStartedUniverse },
Buttons = buttons.ToArray(),
Expand Down

0 comments on commit 5558e51

Please sign in to comment.