This commit is contained in:
niko
2026-06-04 11:42:34 +02:00
parent f39ba70a9f
commit e720b98cd1
7488 changed files with 2493818 additions and 0 deletions
+46
View File
@@ -0,0 +1,46 @@
using System;
using System.IO;
using System.Runtime.CompilerServices;
using System.Text;
using UnityEngine.Scripting;
namespace UnityEngine
{
// Token: 0x020000DC RID: 220
internal sealed class UnityLogWriter : TextWriter
{
// Token: 0x06001044 RID: 4164
[ThreadAndSerializationSafe]
[GeneratedByOldBindingsGenerator]
[MethodImpl(MethodImplOptions.InternalCall)]
public static extern void WriteStringToUnityLog(string s);
// Token: 0x06001045 RID: 4165 RVA: 0x00015D90 File Offset: 0x00013F90
public static void Init()
{
Console.SetOut(new UnityLogWriter());
}
// Token: 0x1700036B RID: 875
// (get) Token: 0x06001046 RID: 4166 RVA: 0x00015DA0 File Offset: 0x00013FA0
public override Encoding Encoding
{
get
{
return Encoding.UTF8;
}
}
// Token: 0x06001047 RID: 4167 RVA: 0x00015DBC File Offset: 0x00013FBC
public override void Write(char value)
{
UnityLogWriter.WriteStringToUnityLog(value.ToString());
}
// Token: 0x06001048 RID: 4168 RVA: 0x00015DD4 File Offset: 0x00013FD4
public override void Write(string s)
{
UnityLogWriter.WriteStringToUnityLog(s);
}
}
}