diff options
Diffstat (limited to 'src/Ryujinx.Ui.Common/Helper/TitleHelper.cs')
| -rw-r--r-- | src/Ryujinx.Ui.Common/Helper/TitleHelper.cs | 30 |
1 files changed, 0 insertions, 30 deletions
diff --git a/src/Ryujinx.Ui.Common/Helper/TitleHelper.cs b/src/Ryujinx.Ui.Common/Helper/TitleHelper.cs deleted file mode 100644 index 089b5215..00000000 --- a/src/Ryujinx.Ui.Common/Helper/TitleHelper.cs +++ /dev/null @@ -1,30 +0,0 @@ -using Ryujinx.HLE.Loaders.Processes; -using System; - -namespace Ryujinx.Ui.Common.Helper -{ - public static class TitleHelper - { - public static string ActiveApplicationTitle(ProcessResult activeProcess, string applicationVersion, string pauseString = "") - { - if (activeProcess == null) - { - return String.Empty; - } - - 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)"; - - string appTitle = $"Ryujinx {applicationVersion} -{titleNameSection}{titleVersionSection}{titleIdSection}{titleArchSection}"; - - if (!string.IsNullOrEmpty(pauseString)) - { - appTitle += $" ({pauseString})"; - } - - return appTitle; - } - } -} |
