Add warning and option to disable when loading game with debug logs
This commit is contained in:
parent
b18ef8e3a0
commit
5657b84406
1 changed files with 17 additions and 0 deletions
|
@ -303,6 +303,23 @@ namespace Ryujinx.Ui
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
if (ConfigurationState.Instance.Logger.EnableDebug.Value)
|
||||||
|
{
|
||||||
|
MessageDialog debugWarningDialog = new MessageDialog(this, DialogFlags.Modal, MessageType.Warning, ButtonsType.YesNo, null)
|
||||||
|
{
|
||||||
|
Text = "You have debug logs enabled!",
|
||||||
|
SecondaryText = "Enabling debug logs causes losses to FPS, would you like to disable them?"
|
||||||
|
};
|
||||||
|
|
||||||
|
if (debugWarningDialog.Run() == (int)ResponseType.Yes)
|
||||||
|
{
|
||||||
|
ConfigurationState.Instance.Logger.EnableDebug.Value = false;
|
||||||
|
SaveConfig();
|
||||||
|
}
|
||||||
|
|
||||||
|
debugWarningDialog.Dispose();
|
||||||
|
}
|
||||||
|
|
||||||
Logger.RestartTime();
|
Logger.RestartTime();
|
||||||
|
|
||||||
HLE.Switch device = InitializeSwitchInstance();
|
HLE.Switch device = InitializeSwitchInstance();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue