mirror of
https://github.com/Ryujinx/Opentk.git
synced 2025-02-02 14:21:07 +00:00
* ExampleBrowser.cs:
Fixed support console and persistent tracing.
This commit is contained in:
parent
2fc35f4d70
commit
5c23242665
|
@ -420,7 +420,16 @@ namespace Examples
|
|||
{
|
||||
try
|
||||
{
|
||||
_main.Invoke(null, null);
|
||||
using (TextWriterTraceListener dbg = new TextWriterTraceListener("debug.log"))
|
||||
{
|
||||
Trace.Listeners.Add(dbg);
|
||||
Trace.Listeners.Add(new ConsoleTraceListener());
|
||||
|
||||
_main.Invoke(null, null);
|
||||
|
||||
dbg.Flush();
|
||||
dbg.Close();
|
||||
}
|
||||
}
|
||||
catch (TargetInvocationException expt)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue