mirror of
https://git.ryujinx.app/ryubing/ryujinx.git
synced 2025-07-07 09:36:26 +02:00
UI: RPC: Maintain game started timestamp for the duration of the AppHost
This commit is contained in:
parent
250acab7a7
commit
e3f20abd23
4 changed files with 11 additions and 5 deletions
|
@ -3,6 +3,7 @@ using Avalonia.Controls;
|
|||
using Avalonia.Controls.ApplicationLifetimes;
|
||||
using Avalonia.Input;
|
||||
using Avalonia.Threading;
|
||||
using DiscordRPC;
|
||||
using LibHac.Common;
|
||||
using LibHac.Ns;
|
||||
using LibHac.Tools.FsSystem;
|
||||
|
@ -594,6 +595,8 @@ namespace Ryujinx.Ava
|
|||
gamepad?.ClearLed();
|
||||
gamepad?.Dispose();
|
||||
}
|
||||
|
||||
DiscordIntegrationModule.GuestAppStartedAt = null;
|
||||
|
||||
Rainbow.Disable();
|
||||
Rainbow.Reset();
|
||||
|
@ -685,6 +688,8 @@ namespace Ryujinx.Ava
|
|||
|
||||
public async Task<bool> LoadGuestApplication(BlitStruct<ApplicationControlProperty>? customNacpData = null)
|
||||
{
|
||||
DiscordIntegrationModule.GuestAppStartedAt = Timestamps.Now;
|
||||
|
||||
InitEmulatedSwitch();
|
||||
MainWindow.UpdateGraphicsConfig();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue