Removed unwanted infos from log
parent
63eecb797e
commit
655794fd17
|
@ -19,39 +19,30 @@ namespace stardew_access
|
||||||
{
|
{
|
||||||
nvdaOutput = new NvdaOutput();
|
nvdaOutput = new NvdaOutput();
|
||||||
}
|
}
|
||||||
catch (Exception ex)
|
catch (Exception) { }
|
||||||
{
|
|
||||||
MainClass.monitor.Log($"Error initializing NVDA:\n{ex.StackTrace}", LogLevel.Info);
|
|
||||||
}
|
|
||||||
|
|
||||||
// Initialize JAWS
|
// Initialize JAWS
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
jawsOutput = new JawsOutput();
|
jawsOutput = new JawsOutput();
|
||||||
}
|
}
|
||||||
catch (Exception ex)
|
catch (Exception) { }
|
||||||
{
|
|
||||||
MainClass.monitor.Log($"Error initializing JAWS:\n{ex.StackTrace}", LogLevel.Info);
|
|
||||||
}
|
|
||||||
|
|
||||||
// Initialize SAPI
|
// Initialize SAPI
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
sapiOutput = new SapiOutput();
|
sapiOutput = new SapiOutput();
|
||||||
}
|
}
|
||||||
catch (Exception ex)
|
catch (Exception){ }
|
||||||
{
|
|
||||||
MainClass.monitor.Log($"Error initializing SAPI:\n{ex.StackTrace}", LogLevel.Info);
|
|
||||||
}
|
|
||||||
|
|
||||||
if (nvdaOutput != null && nvdaOutput.IsAvailable())
|
if (nvdaOutput != null && nvdaOutput.IsAvailable())
|
||||||
screenReader = nvdaOutput;
|
screenReader = nvdaOutput;
|
||||||
|
else if (jawsOutput != null && jawsOutput.IsAvailable())
|
||||||
if (jawsOutput != null && jawsOutput.IsAvailable())
|
|
||||||
screenReader = jawsOutput;
|
screenReader = jawsOutput;
|
||||||
|
else if (sapiOutput != null && sapiOutput.IsAvailable())
|
||||||
if (sapiOutput != null && sapiOutput.IsAvailable())
|
|
||||||
screenReader = sapiOutput;
|
screenReader = sapiOutput;
|
||||||
|
else
|
||||||
|
MainClass.monitor.Log($"Unable to load any screen reader!", LogLevel.Error);
|
||||||
}
|
}
|
||||||
|
|
||||||
public static void say(string text, bool interrupt)
|
public static void say(string text, bool interrupt)
|
||||||
|
|
Loading…
Reference in New Issue