Add warning and option to disable when loading game with debug logs

This commit is contained in:
Xpl0itR 2020-03-21 07:54:44 +00:00
parent b18ef8e3a0
commit 5657b84406
No known key found for this signature in database
GPG key ID: 91798184109676AD

View file

@ -303,6 +303,23 @@ namespace Ryujinx.Ui
}
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();
HLE.Switch device = InitializeSwitchInstance();