overlays: only log actual input loop errors

This commit is contained in:
Megamouse 2022-04-20 18:32:30 +02:00
parent b29f106c51
commit 918984ee64
5 changed files with 28 additions and 7 deletions

View file

@ -218,7 +218,10 @@ namespace rsx
if (const auto error = run_input_loop()) if (const auto error = run_input_loop())
{ {
rsx_log.error("Media dialog input loop exited with error code=%d", error); if (error != selection_code::canceled)
{
rsx_log.error("Media list dialog input loop exited with error code=%d", error);
}
return error; return error;
} }

View file

@ -259,7 +259,10 @@ namespace rsx
{ {
if (const auto error = run_input_loop()) if (const auto error = run_input_loop())
{ {
rsx_log.error("Dialog input loop exited with error code=%d", error); if (error != selection_code::canceled)
{
rsx_log.error("Message dialog input loop exited with error code=%d", error);
}
return error; return error;
} }
} }
@ -296,7 +299,10 @@ namespace rsx
if (const auto error = run_input_loop()) if (const auto error = run_input_loop())
{ {
rsx_log.error("Dialog input loop exited with error code=%d", error); if (error != selection_code::canceled)
{
rsx_log.error("Message dialog input loop exited with error code=%d", error);
}
} }
} }
else else

View file

@ -1191,7 +1191,10 @@ namespace rsx
if (const auto error = run_input_loop()) if (const auto error = run_input_loop())
{ {
rsx_log.error("Osk input loop exited with error code=%d", error); if (error != selection_code::canceled)
{
rsx_log.error("Osk input loop exited with error code=%d", error);
}
} }
thread_bits &= ~tbit; thread_bits &= ~tbit;

View file

@ -307,8 +307,14 @@ namespace rsx
visible = true; visible = true;
if (const auto err = run_input_loop()) if (const auto error = run_input_loop())
return err; {
if (error != selection_code::canceled)
{
rsx_log.error("Save dialog input loop exited with error code=%d", error);
}
return error;
}
if (return_code >= 0) if (return_code >= 0)
{ {

View file

@ -259,7 +259,10 @@ namespace rsx
if (const auto error = run_input_loop()) if (const auto error = run_input_loop())
{ {
rsx_log.error("Dialog input loop exited with error code=%d", error); if (error != selection_code::canceled)
{
rsx_log.error("User list dialog input loop exited with error code=%d", error);
}
} }
thread_bits &= ~tbit; thread_bits &= ~tbit;