|
@@ -346,16 +346,9 @@ namespace Ryujinx.Ava
|
|
|
|
|
|
|
|
_viewModel.IsGameRunning = true;
|
|
_viewModel.IsGameRunning = true;
|
|
|
|
|
|
|
|
- var activeProcess = Device.Processes.ActiveApplication;
|
|
|
|
|
-
|
|
|
|
|
- string titleNameSection = string.IsNullOrWhiteSpace(activeProcess.Name) ? string.Empty : $" {activeProcess.Name}";
|
|
|
|
|
- string titleVersionSection = string.IsNullOrWhiteSpace(activeProcess.DisplayVersion) ? string.Empty : $" v{activeProcess.DisplayVersion}";
|
|
|
|
|
- string titleIdSection = $" ({activeProcess.ProgramIdText.ToUpper()})";
|
|
|
|
|
- string titleArchSection = activeProcess.Is64Bit ? " (64-bit)" : " (32-bit)";
|
|
|
|
|
-
|
|
|
|
|
Dispatcher.UIThread.InvokeAsync(() =>
|
|
Dispatcher.UIThread.InvokeAsync(() =>
|
|
|
{
|
|
{
|
|
|
- _viewModel.Title = $"Ryujinx {Program.Version} -{titleNameSection}{titleVersionSection}{titleIdSection}{titleArchSection}";
|
|
|
|
|
|
|
+ _viewModel.Title = TitleHelper.ActiveApplicationTitle(Device.Processes.ActiveApplication, Program.Version);
|
|
|
});
|
|
});
|
|
|
|
|
|
|
|
_viewModel.SetUiProgressHandlers(Device);
|
|
_viewModel.SetUiProgressHandlers(Device);
|
|
@@ -727,6 +720,8 @@ namespace Ryujinx.Ava
|
|
|
Device?.System.TogglePauseEmulation(false);
|
|
Device?.System.TogglePauseEmulation(false);
|
|
|
|
|
|
|
|
_viewModel.IsPaused = false;
|
|
_viewModel.IsPaused = false;
|
|
|
|
|
+ _viewModel.Title = TitleHelper.ActiveApplicationTitle(Device?.Processes.ActiveApplication, Program.Version);
|
|
|
|
|
+ Logger.Info?.Print(LogClass.Emulation, "Emulation was resumed");
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
internal void Pause()
|
|
internal void Pause()
|
|
@@ -734,6 +729,8 @@ namespace Ryujinx.Ava
|
|
|
Device?.System.TogglePauseEmulation(true);
|
|
Device?.System.TogglePauseEmulation(true);
|
|
|
|
|
|
|
|
_viewModel.IsPaused = true;
|
|
_viewModel.IsPaused = true;
|
|
|
|
|
+ _viewModel.Title = TitleHelper.ActiveApplicationTitle(Device?.Processes.ActiveApplication, Program.Version, LocaleManager.Instance[LocaleKeys.Paused]);
|
|
|
|
|
+ Logger.Info?.Print(LogClass.Emulation, "Emulation was paused");
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
private void InitializeSwitchInstance()
|
|
private void InitializeSwitchInstance()
|