m
This commit is contained in:
@@ -0,0 +1,26 @@
|
||||
using System;
|
||||
using System.IO;
|
||||
using Cpp2IlInjected;
|
||||
using UnityEngine;
|
||||
|
||||
namespace RecRoom.Platforms.Standalone
|
||||
{
|
||||
// Token: 0x020024EE RID: 9454
|
||||
[Token(Token = "0x20024EE")]
|
||||
public static class DeleteLegacyLogs
|
||||
{
|
||||
// Token: 0x0600F234 RID: 62004 RVA: 0x00375C6C File Offset: 0x00373E6C
|
||||
[Token(Token = "0x600F234")]
|
||||
[Address(RVA = "0x19D4AC0", Offset = "0x19D3AC0", VA = "0x1819D4AC0")]
|
||||
[RuntimeInitializeOnLoadMethod]
|
||||
private static void DeleteLegacyStandaloneLogs()
|
||||
{
|
||||
string text = Path.Combine(Application.persistentDataPath, "output_log.txt");
|
||||
if (File.Exists(text))
|
||||
{
|
||||
Debug.LogWarning("Deleting legacy log file from path: " + text);
|
||||
File.Delete(text);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user