Flush the error log before exit (ryubing/ryujinx!163)

See merge request ryubing/ryujinx!163
This commit is contained in:
Coxxs
2025-10-13 17:40:15 -05:00
committed by GreemDev
parent ceec9617ef
commit 51584a083b
5 changed files with 61 additions and 1 deletions

View File

@@ -187,6 +187,17 @@ namespace Ryujinx.Common.Logging
}
}
public static void Flush()
{
foreach (ILogTarget target in _logTargets)
{
if (target is AsyncLogTargetWrapper asyncTarget)
{
asyncTarget.Flush();
}
}
}
public static void Shutdown()
{
Updated = null;