mirror of
https://github.com/Alex-Rachel/TEngine.git
synced 2025-08-07 16:45:10 +00:00
日志重定向相关的实用函数。
日志重定向相关的实用函数。
This commit is contained in:
@@ -17,7 +17,7 @@ namespace TEngine.Editor
|
||||
{
|
||||
if (line <= 0)
|
||||
{
|
||||
throw new ArgumentOutOfRangeException(nameof(line));
|
||||
return false;
|
||||
}
|
||||
var stackTrace = GetStackTrace();
|
||||
if (!string.IsNullOrEmpty(stackTrace) && (stackTrace.Contains("[Debug]") ||
|
||||
@@ -78,7 +78,7 @@ namespace TEngine.Editor
|
||||
{
|
||||
var consoleInstance = fieldInfo.GetValue(null);
|
||||
if (consoleInstance != null)
|
||||
if (EditorWindow.focusedWindow == consoleInstance)
|
||||
if (EditorWindow.focusedWindow == (EditorWindow)consoleInstance)
|
||||
{
|
||||
// 获取m_ActiveText成员
|
||||
fieldInfo = consoleWindowType.GetField("m_ActiveText",
|
||||
|
Reference in New Issue
Block a user