Show Game Title on Titlebar (#408)
* support reading control data * show game info on titlebar * use first language is default is not available * use seperate language enums for titles * fix hex display
This commit is contained in:
parent
b8133c1997
commit
fae097408e
5 changed files with 119 additions and 18 deletions
|
@ -258,8 +258,11 @@ namespace Ryujinx
|
|||
double HostFps = Device.Statistics.GetSystemFrameRate();
|
||||
double GameFps = Device.Statistics.GetGameFrameRate();
|
||||
|
||||
NewTitle = $"Ryujinx | Host FPS: {HostFps:0.0} | Game FPS: {GameFps:0.0} | Game Vsync: " +
|
||||
(Device.EnableDeviceVsync ? "On" : "Off");
|
||||
string TitleSection = string.IsNullOrWhiteSpace(Device.System.CurrentTitle) ? string.Empty
|
||||
: " | " + Device.System.CurrentTitle;
|
||||
|
||||
NewTitle = $"Ryujinx{TitleSection} | Host FPS: {HostFps:0.0} | Game FPS: {GameFps:0.0} | " +
|
||||
$"Game Vsync: {(Device.EnableDeviceVsync ? "On" : "Off")}";
|
||||
|
||||
TitleEvent = true;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue