mirror of
https://github.com/Ryujinx/Opentk.git
synced 2025-03-29 18:06:52 +00:00
* ExampleBrowser.cs:
Fixed support console and persistent tracing.
This commit is contained in:
parent
184ffc19fc
commit
fa687adceb
|
@ -420,7 +420,16 @@ namespace Examples
|
||||||
{
|
{
|
||||||
try
|
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)
|
catch (TargetInvocationException expt)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue